# HG changeset patch # User William Roberts # Date 1279812657 -3600 # Node ID b73d0bdd62de1c05079672956f39ada99476c133 # Parent a84e691b1955c1b97283d50a8f4e37cba12a46e7# Parent 624e91e1e0299d38d45f0363132faf021bae82a3 Catchup to latest Symbian^4 diff -r a84e691b1955 -r b73d0bdd62de ftuapplication/ftuapplication.pro --- a/ftuapplication/ftuapplication.pro Fri Jun 11 16:23:41 2010 +0100 +++ b/ftuapplication/ftuapplication.pro Thu Jul 22 16:30:57 2010 +0100 @@ -36,7 +36,7 @@ CONFIG += hb CONFIG += console - +#DEFINES += LOGGING nft:DEFINES += NFT DEPENDPATH += . \ diff -r a84e691b1955 -r b73d0bdd62de ftuapplication/inc/ftufirsttimeuse.h --- a/ftuapplication/inc/ftufirsttimeuse.h Fri Jun 11 16:23:41 2010 +0100 +++ b/ftuapplication/inc/ftufirsttimeuse.h Thu Jul 22 16:30:57 2010 +0100 @@ -23,10 +23,15 @@ #include +#ifdef LOGGING +#define QDEBUG(a) qDebug() < #include -#include "xqsettingskey.h" -#include "xqpublishandsubscribeutils.h" QTM_USE_NAMESPACE @@ -39,15 +37,13 @@ // -#include -#include #include FtuFirstTimeUse::FtuFirstTimeUse(QObject* aParent) : QObject(aParent), mRuntime(NULL) { - FTUTEST_FUNC_ENTRY("FTU::FtuFirstTimeUse::FtuFirstTimeUse"); + QDEBUG("FTU::FtuFirstTimeUse::FtuFirstTimeUse"); registerServicePlugins(); @@ -56,8 +52,8 @@ QList interfaces = manager.findInterfaces( filter); - qDebug() << "ftu: found " << interfaces.count() - << " instances of runtime"; + QDEBUG("ftu: found " << interfaces.count() + << " instances of runtime";) if(interfaces.count() > 0){ mRuntime = (QStateMachine*)(manager.loadInterface( @@ -73,15 +69,8 @@ connect(mRuntime, SIGNAL(faulted()), SLOT(handleRuntimeFaulted())); } - FTUTEST_FUNC_EXIT("FTU::FtuFirstTimeUse::FtuFirstTimeUse"); + QDEBUG("FTU::FtuFirstTimeUse::FtuFirstTimeUse"); - const quint32 KDefaultKey = 0x00000001; - const qint32 KFtuUidProperty = {0x20026F95}; //SID of FirstTimeUseApplication - - mSettingsManager = new XQSettingsManager(this); - XQPublishAndSubscribeUtils utils(*mSettingsManager); - XQPublishAndSubscribeSettingsKey pAndSKey(KFtuUidProperty, KDefaultKey); - bool err = utils.defineProperty(pAndSKey, XQSettingsManager::TypeInt); } // --------------------------------------------------------------------------- @@ -106,7 +95,7 @@ // void FtuFirstTimeUse::start() { - FTUTEST_FUNC_ENTRY("FTU::FtuFirstTimeUse::start"); + QDEBUG("FTU::FtuFirstTimeUse::start"); if(mRuntime) { mRuntime->start(); @@ -114,7 +103,7 @@ emit exit(); } - FTUTEST_FUNC_EXIT("FTU::FtuFirstTimeUse::start"); + QDEBUG("FTU::FtuFirstTimeUse::start"); } // --------------------------------------------------------------------------- @@ -123,7 +112,7 @@ // void FtuFirstTimeUse::stop() { - FTUTEST_FUNC_ENTRY("FTU::FtuFirstTimeUse::stop"); + QDEBUG("FTU::FtuFirstTimeUse::stop"); if (mRuntime && mRuntime->isRunning()) { @@ -131,7 +120,7 @@ } - FTUTEST_FUNC_EXIT("FTU::FtuFirstTimeUse::stop"); + QDEBUG("FTU::FtuFirstTimeUse::stop"); } // --------------------------------------------------------------------------- @@ -165,7 +154,7 @@ // void FtuFirstTimeUse::registerServicePlugins() { - FTUTEST_FUNC_ENTRY("FTU::FtuFirstTimeUse::registerServicePlugins()"); + QDEBUG("FTU::FtuFirstTimeUse::registerServicePlugins()"); QStringList pluginPaths; pluginPaths << "fturesources/plugins"; @@ -187,7 +176,7 @@ registerServicePlugins(pluginPath); } } - FTUTEST_FUNC_EXIT("FTU::FtuFirstTimeUse::registerServicePlugins()"); + QDEBUG("FTU::FtuFirstTimeUse::registerServicePlugins()"); } // --------------------------------------------------------------------------- @@ -196,8 +185,8 @@ // void FtuFirstTimeUse::registerServicePlugins(const QString &root) { - FTUTEST_FUNC_ENTRY("FTU::FtuFirstTimeUse::registerServicePlugins(const QString &)"); - qDebug() << "FTU: root: " << root; + QDEBUG("FTU::FtuFirstTimeUse::registerServicePlugins(const QString &)"); + QDEBUG("FTU: root: " << root;) QDir dir = QDir(root); QFileInfoList fileInfos = dir.entryInfoList(QDir::AllDirs | QDir::NoDotAndDotDot); @@ -210,13 +199,13 @@ if (!fileInfos.isEmpty()) { //Plugin dll and xml are in the same directory QApplication::addLibraryPath(root); - qDebug() << QString("FTU::FtuFirstTimeUse::registerServicePlugins - Directory added to application's library paths: ") - << root; + QDEBUG("FTU::FtuFirstTimeUse::registerServicePlugins - Directory added to application's library paths: " + << root;) QServiceManager manager; foreach(QFileInfo fileInfo, fileInfos) { manager.addService(fileInfo.absoluteFilePath()); - qDebug() << QString("FTU::FtuFirstTimeUse::registerServicePlugins - Plugin registered: ") + fileInfo.fileName(); + QDEBUG("FTU::FtuFirstTimeUse::registerServicePlugins - Plugin registered: " << fileInfo.fileName();) } } - FTUTEST_FUNC_EXIT("FTU::FtuFirstTimeUse::registerServicePlugins(const QString &)"); + QDEBUG("FTU::FtuFirstTimeUse::registerServicePlugins(const QString &)"); } diff -r a84e691b1955 -r b73d0bdd62de ftuapplication/src/main.cpp --- a/ftuapplication/src/main.cpp Fri Jun 11 16:23:41 2010 +0100 +++ b/ftuapplication/src/main.cpp Thu Jul 22 16:30:57 2010 +0100 @@ -23,6 +23,8 @@ #include #include #include +#include +#include // --------------------------------------------------------------------------- // main @@ -30,6 +32,7 @@ // int main(int argc, char *argv[]) { + QDEBUG(__FILE__<<__FUNCTION__<<"~~~~~~~"< #include diff -r a84e691b1955 -r b73d0bdd62de runtimeproviders/ftudefaultruntimeprovider/src/ftudefaultruntime.cpp --- a/runtimeproviders/ftudefaultruntimeprovider/src/ftudefaultruntime.cpp Fri Jun 11 16:23:41 2010 +0100 +++ b/runtimeproviders/ftudefaultruntimeprovider/src/ftudefaultruntime.cpp Thu Jul 22 16:30:57 2010 +0100 @@ -26,7 +26,7 @@ #include #include #include - +#include #include @@ -98,7 +98,9 @@ void FtuDefaultRuntime::createGuiServiceParts() { mWindow = new HbMainWindow(); + QDEBUG("FtuDefaultRuntime Window created"<<__FUNCTION__<<"~~~~~~~"<show(); + QDEBUG("FtuDefaultRuntime Window Shown"<<__FUNCTION__<<"~~~~~~~"<objectName(); + QDEBUG("Assign service:" << name << "\n to " << state->objectName();) if (name == FTU_CONTENT_SERVICE_KEY) { state->setProperty(name.toAscii().data(), qVariantFromValue(mFtuContentService)); } else { - qWarning() << "WARNING: Service " << name << " is unknown"; + QDEBUG("WARNING: Service " << name << " is unknown";) } } } diff -r a84e691b1955 -r b73d0bdd62de stateproviders/ftustateprovider/ftustateprovider.pro --- a/stateproviders/ftustateprovider/ftustateprovider.pro Fri Jun 11 16:23:41 2010 +0100 +++ b/stateproviders/ftustateprovider/ftustateprovider.pro Thu Jul 22 16:30:57 2010 +0100 @@ -17,7 +17,7 @@ TEMPLATE = lib DEFINES += FTUSTATEPROVIDER_LIB - +#DEFINES += LOGGING symbian { CONFIG(debug, debug|release) { diff -r a84e691b1955 -r b73d0bdd62de stateproviders/ftustateprovider/inc/ftustateprovider_global.h --- a/stateproviders/ftustateprovider/inc/ftustateprovider_global.h Fri Jun 11 16:23:41 2010 +0100 +++ b/stateproviders/ftustateprovider/inc/ftustateprovider_global.h Thu Jul 22 16:30:57 2010 +0100 @@ -32,4 +32,11 @@ #endif #endif +#ifdef LOGGING +#define QDEBUG(a) qDebug() < - + - + - + - + - + - - + + @@ -26,35 +26,29 @@ - - - - - + - + - - - - - - - + + - + - + - + + + + diff -r a84e691b1955 -r b73d0bdd62de stateproviders/ftustateprovider/src/ftustateprovider.cpp --- a/stateproviders/ftustateprovider/src/ftustateprovider.cpp Fri Jun 11 16:23:41 2010 +0100 +++ b/stateproviders/ftustateprovider/src/ftustateprovider.cpp Thu Jul 22 16:30:57 2010 +0100 @@ -21,7 +21,7 @@ #include "ftuwizardmenustate.h" #include "ftuwizardloaderstate.h" #include "ftuwizardactivatedstate.h" - +#include "ftustateprovider_global.h" #include #include @@ -57,7 +57,7 @@ return new FtuWizardActivatedState(); } else { - qDebug() << "FTU: No state found for uri: " << uri; + QDEBUG("FTU: No state found for uri: " << uri;) return NULL; } } diff -r a84e691b1955 -r b73d0bdd62de stateproviders/ftustateprovider/src/ftuwizardactivatedstate.cpp --- a/stateproviders/ftustateprovider/src/ftuwizardactivatedstate.cpp Fri Jun 11 16:23:41 2010 +0100 +++ b/stateproviders/ftustateprovider/src/ftuwizardactivatedstate.cpp Thu Jul 22 16:30:57 2010 +0100 @@ -19,6 +19,7 @@ #include "ftuwizardactivatedstate.h" #include "fturuntimeservices_global.h" #include "ftucontentservice.h" +#include "ftustateprovider_global.h" #include #include @@ -36,7 +37,6 @@ #include #include -const int gridRowCount = 1; const char *FTUSTATEPROVIDER_DOCML2 = ":/xml/ftustateprovider.docml"; const char *WIZARD_VIEW = "wizardView"; @@ -67,10 +67,8 @@ mPluginTitleLabel(NULL), mWizardStackedWidget(NULL), mBackAction(NULL), - mMenustrip(NULL), mPreviousView(NULL), - mCurrentView(NULL), - mPluginDisplayMode(PartialScreen) + mCurrentView(NULL) { mMainWindow = hbInstance->allMainWindows().at(0); mDocumentLoader = new HbDocumentLoader(); @@ -116,20 +114,13 @@ // void FtuWizardActivatedState::onEntry(QEvent *event) { - qDebug() << "ftu:FtuWizardActivatedState::onEntry"; + QDEBUG("ftu:FtuWizardActivatedState::onEntry";) QState::onEntry(event); int activeIndex = content()->activeWizard(); mActiveWizard = content()->wizard(activeIndex); mPluginView->setNavigationAction(mBackAction); - // Make menustrip for testing purposes. - if(!mMenustrip) - { - constructGrid(); - } - mMenustrip->setVisible(true); - connect(mBackAction, SIGNAL(triggered()), this, SLOT(handleBackEvent())); @@ -152,22 +143,21 @@ QState::onExit(event); mMainWindow->currentView()->takeMenu(); disconnect(mBackAction, SIGNAL(triggered()), - this, SLOT(handleBackEvent())); + this, SLOT(handleBackEvent())); + + + disconnect(mActiveWizard, SIGNAL(wizardDeactivated(FtuWizard *)), + this, SLOT(handleGotoToC())); disconnect(mActiveWizard, SIGNAL(viewChanged(FtuWizard *, QGraphicsWidget* )), this, SLOT(changeWizardView(FtuWizard*, QGraphicsWidget*))); - disconnect(mActiveWizard, SIGNAL(fullScreenModeRequested(FtuWizard *)), - this, SLOT(enableFullScreenMode(FtuWizard*))); - - disconnect(mActiveWizard, SIGNAL(partialScreenModeRequested(FtuWizard * )), - this, SLOT(enablePartialScreenMode(FtuWizard*))); disconnect(mActiveWizard, SIGNAL(infoTextUpdated(FtuWizard *, QString )), this, SLOT(updateInfoText(FtuWizard *, QString))); - //disconnect from the existing existing wizard's updateMainMenu signal + //disconnect from the existing wizard's updateMainMenu signal disconnect(mActiveWizard,SIGNAL(updateMainMenu(FtuWizard *, HbMenu * )), this,SLOT(updateMainMenu(FtuWizard *, HbMenu * ))); } @@ -179,16 +169,13 @@ void FtuWizardActivatedState::setActiveWizardConnections() { // first disconnect possible old connections with active wizard + disconnect(mActiveWizard, SIGNAL(wizardDeactivated(FtuWizard *)), + this, SLOT(handleGotoToC())); + disconnect(mActiveWizard, SIGNAL(viewChanged(FtuWizard *, QGraphicsWidget* )), this, SLOT(changeWizardView(FtuWizard*, QGraphicsWidget*))); - disconnect(mActiveWizard, SIGNAL(fullScreenModeRequested(FtuWizard *)), - this, SLOT(enableFullScreenMode(FtuWizard*))); - - disconnect(mActiveWizard, SIGNAL(partialScreenModeRequested(FtuWizard * )), - this, SLOT(enablePartialScreenMode(FtuWizard*))); - disconnect(mActiveWizard, SIGNAL(infoTextUpdated(FtuWizard *, QString )), this, SLOT(updateInfoText(FtuWizard *, QString))); @@ -200,18 +187,15 @@ connect(mActiveWizard, SIGNAL(viewChanged(FtuWizard *, QGraphicsWidget* )), this, SLOT(changeWizardView(FtuWizard*, QGraphicsWidget*))); - connect(mActiveWizard, SIGNAL(fullScreenModeRequested(FtuWizard *)), - this, SLOT(enableFullScreenMode(FtuWizard*))); - - connect(mActiveWizard, SIGNAL(partialScreenModeRequested(FtuWizard * )), - this, SLOT(enablePartialScreenMode(FtuWizard*))); - connect(mActiveWizard, SIGNAL(infoTextUpdated(FtuWizard *, QString )), this, SLOT(updateInfoText(FtuWizard *, QString))); // connect to the updateMainMenu wizard signal connect(mActiveWizard,SIGNAL(updateMainMenu(FtuWizard *, HbMenu * )), this,SLOT(updateMainMenu(FtuWizard *, HbMenu * ))); + + connect(mActiveWizard, SIGNAL(wizardDeactivated(FtuWizard *)), + this, SLOT(handleGotoToC())); } // --------------------------------------------------------------------------- @@ -236,6 +220,10 @@ } } +void FtuWizardActivatedState::handleGotoToC() + { + emit backEventTriggered(); + } // --------------------------------------------------------------------------- // FtuWizardActivatedState::updateMainMenu @@ -271,7 +259,7 @@ // set wizard's widget as current widget mWizardStackedWidget->setCurrentWidget(viewWidget); - qDebug() << "Ftu: switching view due plugin view change"; + QDEBUG("Ftu: switching view due plugin view change";) mainWindow()->setCurrentView(mPluginView, true); QList wizards = content()->wizards(); @@ -281,45 +269,10 @@ // temp solution to skip edge indexes - start if (index == 0) { index++; } if (index == wizards.count()-1) { index--; } - // temp solution to skip edge indexes - end - - // create model index for active wizard - QModelIndex modelIndex = mMenustrip->model()->index(index, 0); - // scroll to correct position in menustrip - HbAbstractItemView::ScrollHint hint = HbAbstractItemView::PositionAtCenter; - mMenustrip->scrollTo(modelIndex, hint); } } } -// --------------------------------------------------------------------------- -// FtuWizardActivatedState::enableFullScreenMode -// --------------------------------------------------------------------------- -// -void FtuWizardActivatedState::enableFullScreenMode(FtuWizard *caller) -{ - if(caller == mActiveWizard) - { - mPluginDisplayMode = FullScreen; - // Remove menustrip - mMenustrip->setVisible(false); - caller->resizeWizard(calculateWizardGeometry()); - } -} - -// --------------------------------------------------------------------------- -// FtuWizardActivatedState::enablePartialScreenMode -// --------------------------------------------------------------------------- -// -void FtuWizardActivatedState::enablePartialScreenMode(FtuWizard *caller) -{ - if(caller == mActiveWizard) - { - mPluginDisplayMode = PartialScreen; - mMenustrip->setVisible(true); - caller->resizeWizard(calculateWizardGeometry()); - } -} // --------------------------------------------------------------------------- // FtuWizardActivatedState::updateInfoText @@ -344,49 +297,6 @@ } // --------------------------------------------------------------------------- -// FtuWizardActivatedState::constructGrid -// --------------------------------------------------------------------------- -// -void FtuWizardActivatedState::constructGrid() -{ - // fetch grid view from docml - mMenustrip = qobject_cast(mDocumentLoader->findWidget(WIZARD_GRID_VIEW)); - // set row amount for grid - mMenustrip->setRowCount(gridRowCount); - - mMenustrip->setScrollDirections(Qt::Horizontal); - - FtuContentService* ftuContentService = content(); - // get wizards - QList wizards = ftuContentService->wizards(); - - QStandardItemModel* model = new QStandardItemModel(this); - - for(int i = 0 ; i < wizards.size() ; ++i) - { - // get wizard settings - const FtuWizardSetting& settings = wizards.at(i)->wizardSettings(); - QStandardItem* item = new QStandardItem(); - HbIcon icon(settings.mMenustripDefaultIcon.absoluteFilePath()); - - item->setBackground(QBrush(Qt::lightGray)); - item->setData(icon, Qt::DecorationRole); - - QStringList data; - data << settings.mMenustripLabel; - - item->setData(QVariant(data), Qt::DisplayRole); - - model->appendRow(item); - } - // set above defined model for menustrip - mMenustrip->setModel(model); - - connect(mMenustrip, SIGNAL(activated(const QModelIndex)), - this, SLOT(activateWizard(const QModelIndex))); -} - -// --------------------------------------------------------------------------- // FtuWizardActivatedState::activateWizard // --------------------------------------------------------------------------- // @@ -425,16 +335,6 @@ mActiveWizard->activateWizard(); } } - - // temp solution to skip edge indexes - start - if (wizardIndex == 0) { wizardIndex++; } - if (wizardIndex == content()->wizards().count()-1) { wizardIndex--; } - QModelIndex modelIndex = mMenustrip->model()->index(wizardIndex, 0); - // temp solution to skip edge indexes - end - - HbAbstractItemView::ScrollHint hint = HbAbstractItemView::PositionAtCenter; - // scroll to correct position in menustrip - mMenustrip->scrollTo(modelIndex, hint); } } @@ -446,17 +346,7 @@ { QRectF widgetRect = mWizardStackedWidget->geometry(); QRectF pluginRect = mPluginView->geometry(); - if(mPluginDisplayMode == FullScreen) - { - pluginRect.setSize(QSizeF(widgetRect.width(), - (widgetRect.height() + - mMenustrip->geometry().height()))); - } - else - { - pluginRect.setSize(QSizeF(widgetRect.width(), - widgetRect.height())); - } - + pluginRect.setSize(QSizeF(widgetRect.width(), + widgetRect.height())); return pluginRect; } diff -r a84e691b1955 -r b73d0bdd62de stateproviders/ftustateprovider/src/ftuwizardloaderstate.cpp --- a/stateproviders/ftustateprovider/src/ftuwizardloaderstate.cpp Fri Jun 11 16:23:41 2010 +0100 +++ b/stateproviders/ftustateprovider/src/ftuwizardloaderstate.cpp Thu Jul 22 16:30:57 2010 +0100 @@ -24,7 +24,7 @@ #include "ftutest_global.h" #include "ftustatecenrephandler.h" #include - +#include // --------------------------------------------------------------------------- // FtuWizardLoaderState::FtuWizardLoaderState // --------------------------------------------------------------------------- @@ -51,7 +51,7 @@ void FtuWizardLoaderState::addWizard(FtuWizard* wizard, bool success) { if(NULL!=wizard) { - qDebug() << "Wizard " << wizard->objectName() << " initialized with " << success; + QDEBUG("Wizard " << wizard->objectName() << " initialized with " << success;) } else { qFatal("void FtuWizardLoaderState::addWizard(FtuWizard* wizard, bool success): Null pointer argument wizard"); @@ -65,6 +65,7 @@ disconnect(wizard, SIGNAL(wizardInitialized(FtuWizard*, bool)), this, SLOT(addWizard(FtuWizard*, bool))); } + QDEBUG("FtuWizardLoaderState.cpp"<<__FUNCTION__<<"~~~~~~~"< - +#include "ftustateprovider_global.h" #include #include #include @@ -30,7 +30,7 @@ #include #include - +#include #include #include "ftustatecenrephandler.h" @@ -38,8 +38,6 @@ const int progressCompelete = 100; const char* emptyLine = " "; -#define WMS_LOG qDebug() << "ftu:FtuWizardMenuState" - const char *FTUSTATEPROVIDER_DOCML = ":/xml/ftustateprovider.docml"; const char *TOC_VIEW = "tocView"; const char *TOC_INFOTEXT_LABEL = "tocInfoTextLabel"; @@ -62,17 +60,14 @@ mMainWindow = hbInstance->allMainWindows().at(0); mModel = new QStandardItemModel(this); - //TODO Read number of wizards supported and init the following list - //mCompletedWizardList << false << false << false << false << false <load(FTUSTATEPROVIDER_DOCML, &ok); QGraphicsWidget *widget = mDocumentLoader->findWidget(TOC_VIEW); Q_ASSERT_X(ok && (widget != 0), "ftustateprovider", "invalid DocML file"); mTocView = qobject_cast(widget); - mTocView->setTitle(qtTrId("txt_ftu_title_setup")); + mTocView->setTitle(qtTrId("txt_long_caption_FTU_widget")); mMainWindow->addView(mTocView); // Set as initial view. @@ -105,7 +100,7 @@ // void FtuWizardMenuState::onEntry(QEvent *event) { - WMS_LOG << "::onEntry"; + QDEBUG("FtuWizardMenuState::onEntry";) QState::onEntry(event); if(!mInfoText) @@ -171,7 +166,8 @@ // void FtuWizardMenuState::addWizardToListModel(int aIndex) { - WMS_LOG << "::addWizardToListModel idx : " << aIndex; + + QDEBUG("FtuWizardMenuState::addWizardToListModel idx : " << aIndex;) FtuContentService* ftuContentService = content(); FtuWizard* addedWizard = ftuContentService->wizard(aIndex); @@ -181,9 +177,13 @@ connect(addedWizard, SIGNAL(progressUpdated(FtuWizard *, bool, int)), this, SLOT(updateProgress(FtuWizard *, bool, int))); - const FtuWizardSetting& settings = addedWizard->wizardSettings(); - QStandardItem* newItem = new QStandardItem(); - HbIcon icon (settings.mTocDefaultIcon.absoluteFilePath()); + const FtuWizardSetting& settings = addedWizard->wizardSettings(); + QStandardItem* newItem = new QStandardItem(); + QList iconList; + HbIcon icon (settings.mTocDefaultIcon.filePath() ); + iconList.append(icon); + HbIcon rightIcon(QString(qtTrId("qtg_small_tick"))); + QStringList data; data << settings.mTocLabel; QDate date = addedWizard->wizardCompletedDate(); @@ -193,11 +193,12 @@ } else { + //Plugin has already completed, Append tick mark on right side + iconList.append(rightIcon); data << updatedAsString(date); } - newItem->setBackground(QBrush(Qt::lightGray)); - newItem->setData(icon, Qt::DecorationRole); + newItem->setData(iconList, Qt::DecorationRole); newItem->setData(QVariant(data), Qt::DisplayRole); mModel->appendRow(newItem); @@ -220,6 +221,7 @@ SLOT(activateWizard(const QModelIndex))); mListView->setModel(mModel); + QDEBUG("FtuWizardMenuState.cpp Model is set"<<__FUNCTION__<<"~~~~~~~"<(mDocumentLoader->findWidget(TOC_INFOTEXT_LABEL)); - mInfoText->setPlainText(qtTrId("txt_ftu_subtitle_toc")); + mInfoText->setPlainText(qtTrId("txt_ftu_subhead_select_setting_you_want_to_edit")); } // --------------------------------------------------------------------------- @@ -265,14 +267,18 @@ { if(caller == wizards[i]) { - WMS_LOG << "::updateProgress wizard found at: " << i; + QDEBUG("::updateProgress wizard found at: " << i;) index = i; } } if(index != -1) { QStringList data; - data << wizards[index]->wizardSettings().mTocLabel; + data << wizards[index]->wizardSettings().mTocLabel; + QList iconList; + HbIcon icon (wizards[index]->wizardSettings().mTocDefaultIcon.filePath()); + iconList.append(icon); + HbIcon rightIcon(QString(qtTrId("qtg_small_tick"))); if(progress < progressCompelete) { @@ -285,7 +291,10 @@ else { QDate date = wizards[index]->wizardCompletedDate(); - data << updatedAsString(date); + data << updatedAsString(date); + + //Plugin has completed 100%, Append tick mark on right side + iconList.append(rightIcon); XQSettingsManager settingsManager; @@ -297,5 +306,6 @@ } mModel->item(index)->setData(QVariant(data), Qt::DisplayRole); + mModel->item(index)->setData(iconList, Qt::DecorationRole); } } diff -r a84e691b1955 -r b73d0bdd62de translations/FTU_textmap_10_1.xls Binary file translations/FTU_textmap_10_1.xls has changed diff -r a84e691b1955 -r b73d0bdd62de translations/FTU_textmap_10_1_v4_edit.xls Binary file translations/FTU_textmap_10_1_v4_edit.xls has changed diff -r a84e691b1955 -r b73d0bdd62de translations/ftu_en.ts --- a/translations/ftu_en.ts Fri Jun 11 16:23:41 2010 +0100 +++ b/translations/ftu_en.ts Thu Jul 22 16:30:57 2010 +0100 @@ -1,315 +1,485 @@ - + + + Secondary value for double list 10, and appears if the user has not done any import for old phone from this application before + via bluetooth + + qtl_list_pri_large_graphic_add + FTU_15 + dblist_10_val + FTU + False + + + Inprogress indication shown in the sencond row of the db 11, which say the the sim contacts are being imported and not finshed yet + Importing + + qtl_list_sec_large_graphic + FTU_15 + dblist_11_val + FTU + False + + + Secondary Row text for Setup Item"Setup Nokia account". The secondary is only descriptive of what the Setup Item will provide + And Enjoy Ovi services + + + FTU_13 + dblist_7_val + FTU + False + + + TOC item, setting in sync with control panel´s settings + Time, date and location + + + ftu_09 + dblist + ftu + False + + + Subheading as a status of current status of import + Import from OVI + + qtl_groupbox_simple_sec + FTU_23 + subhead + FTU + False + + + menustrip item + Import data + + + ftu_10 + grid + ftu + False + + + It’s a list with a check box + Synchronize my data automatically in future + + qtl_checkbox_sec + FTU_25 + List + FTU + False + + + + no + + + ftu_08 + button + ftu + False + + + Subheading for one of the module of FTU + Select what you want to do + + qtl_groupbox_simple_sec + FTU_13 + subhead + FTU + False + + + First row of the Double list, with large Icon and can have a seondary ICon + Nokia Account Setup + + + FTU_13 + dblist_7 + FTU + False + + + Where %1 the user name for OVI or the BT name of the phone where the data is being imported + Importing from %1 + + qtl_list_sec_large_graphic + FTU_15 + dblist_10_val + FTU + False + + + The Secondary text 'imported on %2'. Wherer %2 is the date (formatted as system date): ex Imported on 23.09.10 + Imported on %2 + + qtl_list_sec_large_graphic + FTU_15 + dblist_11_val + FTU + False + + + menustrip item + Instant messaging + + + ftu_10 + grid + ftu + False + + + Primary text in double row list that might /might not have a additional secondary Icon .List is predefined in the device, to import data form OVI + From Ovi + + qtl_list_pri_large_graphic_add + FTU_15 + dblist_9 + FTU + False + + + subhead : instuctional text asking the source for importing data from + Import contacts & personal data + + qtl_groupbox_simple_sec + FTU_15 + subhead + FTU + False + + + placeholder, correct text from services later + <terms of use> + + + ftu_07 + info + ftu + False + + + The Secondary text ', 'imported at %1', . Wherer %1 is the time (formatted as system time) when data was imported.example: imported at 12:00 + Imported at %1 + + qtl_list_sec_large_graphic + FTU_15 + dblist_11_val + FTU + False + + + menustrip item + Style of phone + + + ftu_10 + grid + ftu + False + + + menustrip item + Social media + + + ftu_10 + grid + ftu + False + + + Title shown in all FTU views, excluding videos& pin code query + Setup + + + ftu + title + ftu + False + + + TOC item, second row, tells last time user has edited plugin/module, where U is the date + updated %1 + + + ftu_09 + dblist_val + ftu + False + + + Seconday list value, displayes the contents that start importing from OVI once the user chooses this list pootion + Contacts caledars & Notes + + qtl_list_sec_large_graphic + FTU_15 + dblist_9_val + FTU + False + + + text hints what user can do with the the Table Of Concents (TOC) items + Select setting you want to edit + + + ftu_09 + subhead + ftu + False + + + Primary text in double row list that might /might not have a additional secondary Icon .Import from phone, triggers the process to import data from another Nokia Device + From old phone + + qtl_list_pri_large_graphic_add + FTU_15 + dblist_10 + FTU + False + markable setting item: marked or unmarked , shown only in some marketing areas Sign up for tips & tricks - Sign up for tips & tricks + ftu_07 setlabel - ft - False - - - TOC item, data sync - Import data - Import data - - ftu_09 - list item - ft + ftu False related to terms of use below Accept - Accept + ftu_07 button - ft + ftu + False + + + TOC item, data sync + Import data + + + ftu_09 + list item + ftu + False + + + Primary text in double row list that might /might not have a additional secondary Icon .Import from SIM triggers the process to import data from another Nokia SIM + From SIM card + + qtl_list_pri_large_graphic_add + FTU_15 + dblist_11 + FTU + False + + + Parent Custom Layout Parent.Primary text for Ftu widget (list) on home screen + Setup your device + + txt_long_caption_FTU_widget + FTUwidget_14 + list + FTUwidget False menustrip item Email accounts - Email accounts + ftu_10 grid - ft - False - - - TOC item, setting in sync with control panel´s settings - Time, date and location - Time, date and location - - ftu_09 - dblist - ft - False - - - menustrip item - Import data - Import data - - ftu_10 - grid - ft + ftu False TOC item, email account creation Email accounts - Email accounts + ftu_09 dblist - ft + ftu False TOC item, IM account creation Instant messaging - Instant messaging + ftu_09 dblist - ft - False - - - - no - no - - ftu_08 - button - ft + ftu False menustrip item time, date& location - time, date& location + ftu_10 grid - ft + ftu False info text that user can find settings later, dialog view You can find later link to setup from your home screen. - You can find later link to setup from your home screen. + ftu_08 info - ft + ftu False subtitle hints to the view Please read terms of use and accept to continue - Please read terms of use and accept to continue + ftu_07 subhead - ft + ftu + False + + + info text for user choices, related to buttons below, dialog view + Do you want to do start up settings now (recommended)? + + + ftu_08 + info + ftu False TOC item, second row, tells last time user has edited plugin/module, shown only if the update has been today updated today - updated today + ftu_09 dblist_val - ft - False - - - info text for user choices, related to buttons below, dialog view - Do you want to do start up settings now (recommended)? - Do you want to do start up settings now (recommended)? - - ftu_08 - info - ft - False - - - TOC item, sync with the Phonebook mycard - My contact card - My contact card - - ftu_09 - list item - ft + ftu False yes - yes + ftu_08 button - ft + ftu + False + + + TOC item, sync with the Phonebook mycard + My contact card + + + ftu_09 + list item + ftu False menustrip item Importing… - Importing… + ftu_10 grid - ft - False - - - menustrip item - Instant messaging - Instant messaging - - ftu_10 - grid - ft + ftu False TOC item, data sync list item, where U is the source where the data is imported in to the phone (e.g. name of the PC or phone) Import data from %1 - Import data from %1 + ftu_09 list item - ft - False - - - placeholder, correct text from services later - <terms of use> - <terms of use> - - ftu_07 - info - ft - False - - - menustrip item - Style of phone - Style of phone - - ftu_10 - grid - ft - False - - - menustrip item - Social media - Social media - - ftu_10 - grid - ft + ftu False menustrip item, these items open same stuff as TOC items My contact card - My contact card + ftu_10 grid - ft - False - - - Title shown in all FTU views, excluding videos& pin code query - Setup - Setup - - ftu - title - ft - False - - - TOC item, second row, tells the status of the user initiated progress (data sync from source x) - %1% done… - %1% done… - - ftu_09 - dblist_val - ft - False - - - TOC item, second row, tells last time user has edited plugin/module, where U is the date - updated %1 - updated %1 - - ftu_09 - dblist_val - ft + ftu False info text for language selection, uses main view Set your phone language: - Set your phone language: + ftu_06 setlabel - ft + ftu + False + + + TOC item, second row, tells the status of the user initiated progress (data sync from source x) + %1% done… + + + ftu_09 + dblist_val + ftu + False + + + Name in task switcher + Setup your device + + qtl_grid_taskswitcher_tiny_setup + tsw_01 + caption + tsw False TOC item, main phone style settings (ringing tone, wallpaper, theme) Style of phone - Style of phone + ftu_09 dblist - ft + ftu False - - text hints what user can do with the the Table Of Concents (TOC) items - Select setting you want to edit - Select setting you want to edit + + TOC item, SM account creation (facebook etc) + Social media + ftu_09 - subhead - ft + dblist + ftu False info text to user´s choices, uses main view Select language you want to use - Select language you want to use + ftu_06 subhead - ft - False - - - TOC item, SM account creation (facebook etc) - Social media - Social media - - ftu_09 - dblist - ft + ftu False diff -r a84e691b1955 -r b73d0bdd62de translations/ftu_en_GB.qm Binary file translations/ftu_en_GB.qm has changed diff -r a84e691b1955 -r b73d0bdd62de translations/ftu_en_US.qm Binary file translations/ftu_en_US.qm has changed diff -r a84e691b1955 -r b73d0bdd62de wizardproviders/ftuwizardprovider/conf/ftuwizardprovider.confml --- a/wizardproviders/ftuwizardprovider/conf/ftuwizardprovider.confml Fri Jun 11 16:23:41 2010 +0100 +++ b/wizardproviders/ftuwizardprovider/conf/ftuwizardprovider.confml Thu Jul 22 16:30:57 2010 +0100 @@ -54,8 +54,8 @@ 2 - ftudatetimewizard.manifest - dataimportftuwizard.manifest + dataimportftuwizard.manifest + ftuemailwizardplugin.manifest diff -r a84e691b1955 -r b73d0bdd62de wizardproviders/ftuwizardprovider/ftuwizardprovider.pro --- a/wizardproviders/ftuwizardprovider/ftuwizardprovider.pro Fri Jun 11 16:23:41 2010 +0100 +++ b/wizardproviders/ftuwizardprovider/ftuwizardprovider.pro Thu Jul 22 16:30:57 2010 +0100 @@ -22,6 +22,7 @@ DEFINES += FTUWIZARDPROVIDER_LIB +#DEFINES += LOGGING win32 { CONFIG(debug, debug|release) { diff -r a84e691b1955 -r b73d0bdd62de wizardproviders/ftuwizardprovider/inc/ftuwizardprovider_global.h --- a/wizardproviders/ftuwizardprovider/inc/ftuwizardprovider_global.h Fri Jun 11 16:23:41 2010 +0100 +++ b/wizardproviders/ftuwizardprovider/inc/ftuwizardprovider_global.h Thu Jul 22 16:30:57 2010 +0100 @@ -32,5 +32,11 @@ #endif #endif +#ifdef LOGGING +#define QDEBUG(a) qDebug() < #include #include - +#include "ftuwizardprovider_global.h" #ifdef Q_OS_SYMBIAN #include // for reading cenrep keys @@ -70,7 +70,7 @@ QString path = driveLetter + manifestPath; if(QDir(path).exists()) { - qDebug() << "ftu:: append to path list: " << path; + QDEBUG("ftu:: append to path list: " << path;) pathList << path; } } @@ -87,21 +87,21 @@ dir.setNameFilters(filesToRead); QStringList entries = dir.entryList(filesToRead, QDir::Files); - qDebug() << "ftu: Configured manifest file count " + QDEBUG("ftu: Configured manifest file count " << filesToRead.count() - << " found manifest files from system " << entries.count(); + << " found manifest files from system " << entries.count();) // Go through the configured list and find the manifest files. for(int j=0; j < filesToRead.count() ; ++j) { int index = entries.indexOf(filesToRead[j]); - qDebug() << "ftu:reading manifest file from "<< index; + QDEBUG("ftu:reading manifest file from "<< index;) if(index > -1 && index <= entries.count()) { QString fileName = entries[index]; - qDebug() << "ftu:: loading from manifest file: " << fileName; + QDEBUG("ftu:: loading from manifest file: " << fileName;) QString path = loadFromXml(dir.absoluteFilePath(fileName)); - qDebug() << "ftu:: path from manifest: " << path; + QDEBUG("ftu:: path from manifest: " << path;) if(!path.isEmpty()) { dllNameList << path; @@ -132,13 +132,13 @@ int numberOfPlugins = settingsManager->readItemValue( numberOfPluginsKey).toInt(&ok); - qDebug() << "Ftu:FtuManifestParser reading the nbr of plugins resulted: " - << ok; + QDEBUG("Ftu:FtuManifestParser reading the nbr of plugins resulted: " + << ok;) if(ok) { - qDebug() << "Ftu:reading config for " << numberOfPlugins - << " plugins"; + QDEBUG("Ftu:reading config for " << numberOfPlugins + << " plugins";) for(int i=1; i <= numberOfPlugins ; ++i) @@ -149,7 +149,7 @@ QString file = settingsManager->readItemValue(fileKey, XQSettingsManager::TypeString).toString(); - qDebug() << "Ftu:Reading filename from conf :" << file; + QDEBUG("Ftu:Reading filename from conf :" << file;) filesFromConf << file; } } @@ -172,12 +172,12 @@ QString FtuManifestParser::loadFromXml(const QString& aFileName) { - qDebug() << "ftu:: ManifestParser::loadFromXml " << aFileName; + QDEBUG("ftu:: ManifestParser::loadFromXml " << aFileName;) QFile file(aFileName); if(!file.exists()) { - qDebug() << "ftu: file does not exist"; + QDEBUG("ftu: file does not exist";) return QString(); } @@ -190,7 +190,7 @@ QDomElement element = document.documentElement(); if(element.tagName() != "plugin") { - qDebug() << "ftu: Tag name plugin not found"; + QDEBUG("ftu: Tag name plugin not found";) return QString(); } @@ -200,7 +200,7 @@ { element = plugins.at(i).toElement(); QString attr = parseAttribute(element, "library"); - qDebug() << "ftu::parsed attr " << attr; + QDEBUG("ftu::parsed attr " << attr;) return attr; } return QString(); @@ -217,7 +217,7 @@ QDomAttr attribute = element.attributeNode(attributeName); if(attribute.isNull() || attribute.value().isEmpty()) { - qDebug() << "ftu: attribute not parsed [attr name]" << attributeName; + QDEBUG("ftu: attribute not parsed [attr name]" << attributeName;) return QString(); } diff -r a84e691b1955 -r b73d0bdd62de wizardproviders/ftuwizardprovider/src/ftuwizardprovider.cpp --- a/wizardproviders/ftuwizardprovider/src/ftuwizardprovider.cpp Fri Jun 11 16:23:41 2010 +0100 +++ b/wizardproviders/ftuwizardprovider/src/ftuwizardprovider.cpp Thu Jul 22 16:30:57 2010 +0100 @@ -18,7 +18,7 @@ #include "ftuwizardprovider.h" #include "ftumanifestparser.h" - +#include "ftuwizardprovider_global.h" #include #include @@ -109,8 +109,8 @@ if(ok) { - qDebug() << "Ftu:reading config for " << numberOfPlugins - << " plugins"; + QDEBUG("Ftu:reading config for " << numberOfPlugins + << " plugins";) for(int i=1; i <= numberOfPlugins ; ++i) @@ -121,7 +121,7 @@ QString interface = settingsManager.readItemValue(fileKey, XQSettingsManager::TypeString).toString(); - qDebug() << "Ftu:Reading interface name from conf :" << interface; + QDEBUG("Ftu:Reading interface name from conf :" << interface;) QObject* obj = serviceManager->loadInterface(interface); if(obj) { @@ -140,17 +140,17 @@ #else foreach (QString filename, pluginList) { - qDebug () << "Ftu: Loading instance from : "<< filename; + QDEBUG("Ftu: Loading instance from : "<< filename;) QPluginLoader loader(pluginsDir.absoluteFilePath(filename)); QObject* instance = loader.instance(); if(instance) { - qDebug() << "ftu: instance loaded"; + QDEBUG("ftu: instance loaded";) FtuWizardFactory* factory = qobject_cast (instance); if(factory) { - qDebug() << "ftu: appending factory to list"; + QDEBUG("ftu: appending factory to list";) plugins.append(factory); } }