![]() |
Mixxx
|
00001 // libraryview.h 00002 // Created 8/28/2009 by RJ Ryan (rryan@mit.edu) 00003 // 00004 // LibraryView is an abstract interface that all views to be used with the 00005 // Library widget should support. 00006 00007 #ifndef LIBRARYVIEW_H 00008 #define LIBRARYVIEW_H 00009 00010 #include <QString> 00011 #include <QDomNode> 00012 00013 class LibraryView { 00014 public: 00015 virtual void setup(QDomNode node) = 0; 00016 virtual void onSearchStarting() = 0; 00017 virtual void onSearchCleared() = 0; 00018 virtual void onSearch(const QString& text) = 0; 00019 virtual void onShow() = 0; 00020 00021 // If applicable, requests that the LibraryView load the selected 00022 // track. Does nothing otherwise. 00023 virtual void loadSelectedTrack() = 0; 00024 00025 // If applicable, requests that the LibraryView load the selected track to 00026 // the specified group. Does nothing otherwise. 00027 virtual void loadSelectedTrackToGroup(QString group) = 0; 00028 00029 // If a selection is applicable for this view, request that the selection be 00030 // increased or decreased by the provided delta. For example, for a value of 00031 // 1, the view should move to the next selection in the list. 00032 virtual void moveSelection(int delta) = 0; 00033 }; 00034 00035 #endif /* LIBRARYVIEW_H */