| 91 | } |
| 92 | |
| 93 | const QList< QSharedPointer<Library> > LibraryManager::initializeLibraryList() |
| 94 | { |
| 95 | HRESULT hr = S_OK; |
| 96 | |
| 97 | _libraries.clear(); |
| 98 | |
| 99 | // Create and insert the default Desktop 'Library' into the list |
| 100 | // This library is always created and will work on Vista and XP |
| 101 | QSharedPointer<Library> desktopLib = createDesktopLibrary(); |
| 102 | _libraries.insert(desktopLib->getHashKey(), desktopLib); |
| 103 | |
| 104 | if (!createWin7Libraries()) |
| 105 | { |
| 106 | // If we could not create the Win7 Libraries, try Vista KnownFolders |
| 107 | createVistaLibraries(); |
| 108 | } |
| 109 | |
| 110 | return _libraries.values(); |
| 111 | } |
| 112 | |
| 113 | bool LibraryManager::createWin7Libraries() |
| 114 | { |
nothing calls this directly
no test coverage detected