qtmobility/src/serviceframework/servicedatabase.cpp
changeset 8 71781823f776
parent 4 90517678cc4f
child 11 06b8e2af4411
equal deleted inserted replaced
5:453da2cfceef 8:71781823f776
  1674         // and on hardware it is relative to the db managers private directory.
  1674         // and on hardware it is relative to the db managers private directory.
  1675         path = QDir::toNativeSeparators("C:\\Data\\temp\\QtServiceFW");
  1675         path = QDir::toNativeSeparators("C:\\Data\\temp\\QtServiceFW");
  1676 #elif defined(Q_OS_SYMBIAN)
  1676 #elif defined(Q_OS_SYMBIAN)
  1677         QString qtVersion(qVersion());
  1677         QString qtVersion(qVersion());
  1678         qtVersion = qtVersion.left(qtVersion.size() -2); //strip off patch version
  1678         qtVersion = qtVersion.left(qtVersion.size() -2); //strip off patch version
  1679         path = QDir::toNativeSeparators(QCoreApplication::applicationDirPath() +
  1679         path = QDir::toNativeSeparators(QCoreApplication::applicationDirPath() + "QtServiceFramework_" +
  1680                                         "\\Nokia\\" + "QtServiceFramework_" +
  1680                                         qtVersion + "_system" + QLatin1String(".db"));
  1681                                         qtVersion + "_system" +
       
  1682                                         QLatin1String(".db"));
       
  1683 #else
  1681 #else
  1684         QSettings settings(QSettings::SystemScope, "Nokia", "Services");
  1682         QSettings settings(QSettings::SystemScope, "Nokia", "Services");
  1685         path = settings.value("ServicesDB/Path").toString();
  1683         path = settings.value("ServicesDB/Path").toString();
  1686         if (path.isEmpty()) {
  1684         if (path.isEmpty()) {
  1687             path = QDir::currentPath();
  1685             path = QDir::currentPath();