~x3lectric/xbmc/svn-trunk

« back to all changes in this revision

Viewing changes to xbmc/FileSystem/MusicDatabaseDirectory/DirectoryNode.cpp

  • Committer: bobbin007
  • Date: 2006-02-21 16:35:24 UTC
  • Revision ID: svn-v4:568bbfeb-2a22-0410-94d2-cc84cf5bfa90:trunk/XBMC:5074
added: music nav, "Compilation" folder, it shows all Various Artists albums

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#include "DirectoryNodeSongTop100.h"
17
17
#include "DirectoryNodeAlbumTop100.h"
18
18
#include "DirectoryNodeAlbumTop100Song.h"
 
19
#include "DirectoryNodeAlbumCompilations.h"
 
20
#include "DirectoryNodeAlbumCompilationsSongs.h"
19
21
 
20
22
using namespace DIRECTORY::MUSICDATABASEDIRECTORY;
21
23
 
94
96
    return new CDirectoryNodeAlbumRecentlyPlayed(strName, pParent);
95
97
  case NODE_TYPE_ALBUM_RECENTLY_PLAYED_SONGS:
96
98
    return new CDirectoryNodeAlbumRecentlyPlayedSong(strName, pParent);
 
99
  case NODE_TYPE_ALBUM_COMPILATIONS:
 
100
    return new CDirectoryNodeAlbumCompilations(strName, pParent);
 
101
  case NODE_TYPE_ALBUM_COMPILATIONS_SONGS:
 
102
    return new CDirectoryNodeAlbumCompilationsSongs(strName, pParent);
97
103
  }
98
104
 
99
105
  return NULL;
236
242
    //  All album related nodes
237
243
  case NODE_TYPE_ALBUM_RECENTLY_PLAYED:
238
244
  case NODE_TYPE_ALBUM_RECENTLY_ADDED:
 
245
  case NODE_TYPE_ALBUM_COMPILATIONS:
239
246
  case NODE_TYPE_ALBUM_TOP100:
240
247
  case NODE_TYPE_ALBUM:
241
248
    pItem = new CFileItem(g_localizeStrings.Get(15102));  // "All Albums"
245
252
    //  All song related nodes
246
253
  case NODE_TYPE_ALBUM_RECENTLY_PLAYED_SONGS:
247
254
  case NODE_TYPE_ALBUM_RECENTLY_ADDED_SONGS:
 
255
  case NODE_TYPE_ALBUM_COMPILATIONS_SONGS:
248
256
  case NODE_TYPE_ALBUM_TOP100_SONGS:
249
257
  case NODE_TYPE_SONG_TOP100:
250
258
  case NODE_TYPE_SONG: