MCPcopy Create free account
hub / github.com/bumptop/BumpTop / initializeLibraryList

Method initializeLibraryList

trunk/win/Source/BT_LibraryManager.cpp:93–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93const 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
113bool LibraryManager::createWin7Libraries()
114{

Callers

nothing calls this directly

Calls 4

getHashKeyMethod · 0.80
clearMethod · 0.45
insertMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected