| 103 | } |
| 104 | |
| 105 | void ConsoleUILibraryCreator::removeLibrary(const QString &name) |
| 106 | { |
| 107 | // TODO add error handling |
| 108 | YACReaderLibraries yacreaderLibraries; |
| 109 | yacreaderLibraries.load(); |
| 110 | if (!yacreaderLibraries.contains(name)) { |
| 111 | std::cout << "No Library named \"" << name.toUtf8().constData() << "\" in database." << std::endl; |
| 112 | return; |
| 113 | } |
| 114 | yacreaderLibraries.remove(name); |
| 115 | yacreaderLibraries.save(); |
| 116 | |
| 117 | std::cout << "Library removed : " << name.toUtf8().constData() << std::endl; |
| 118 | } |
| 119 | |
| 120 | void ConsoleUILibraryCreator::rescanXMLInfoLibrary(const QString &path) |
| 121 | { |
no test coverage detected