MCPcopy Create free account
hub / github.com/codestation/qcma / insertVirtualEntries

Method insertVirtualEntries

common/sqlitedb.cpp:1258–1323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1256}
1257
1258bool SQLiteDB::insertVirtualEntries()
1259{
1260 int ohfi;
1261
1262 if((ohfi = insertNodeEntry("Folders", VITA_DIR_TYPE_MASK_REGULAR, Video)) > 0) {
1263 insertVirtualEntry(ohfi);
1264 } else {
1265 return false;
1266 }
1267
1268 if((ohfi = insertNodeEntry("All", VITA_DIR_TYPE_MASK_ALL, Video)) > 0) {
1269 insertVirtualEntry(ohfi);
1270 } else {
1271 return false;
1272 }
1273
1274 if((ohfi = insertNodeEntry("Folders", VITA_DIR_TYPE_MASK_REGULAR, Photo)) > 0) {
1275 insertVirtualEntry(ohfi);
1276 } else {
1277 return false;
1278 }
1279
1280 if((ohfi = insertNodeEntry("Month", VITA_DIR_TYPE_MASK_MONTH, Photo)) > 0) {
1281 insertVirtualEntry(ohfi);
1282 } else {
1283 return false;
1284 }
1285
1286 if((ohfi = insertNodeEntry("All", VITA_DIR_TYPE_MASK_ALL, Photo)) > 0) {
1287 insertVirtualEntry(ohfi);
1288 } else {
1289 return false;
1290 }
1291
1292 if((ohfi = insertNodeEntry("Artists", VITA_DIR_TYPE_MASK_ARTISTS, Music)) > 0) {
1293 insertVirtualEntry(ohfi);
1294 } else {
1295 return false;
1296 }
1297
1298 if((ohfi = insertNodeEntry("Albums", VITA_DIR_TYPE_MASK_ALBUMS, Music)) > 0) {
1299 insertVirtualEntry(ohfi);
1300 } else {
1301 return false;
1302 }
1303
1304 if((ohfi = insertNodeEntry("Songs", VITA_DIR_TYPE_MASK_SONGS, Music)) > 0) {
1305 insertVirtualEntry(ohfi);
1306 } else {
1307 return false;
1308 }
1309
1310 if((ohfi = insertNodeEntry("Genres", VITA_DIR_TYPE_MASK_GENRES, Music)) > 0) {
1311 insertVirtualEntry(ohfi);
1312 } else {
1313 return false;
1314 }
1315

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected