/src/libtomahawk/widgets/playlisttypeselectordlg.h

http://github.com/tomahawk-player/tomahawk · C Header · 53 lines · 25 code · 11 blank · 17 comment · 0 complexity · 387c8ba0be24d6c43e46ce5b857d9bfc MD5 · raw file

  1. /* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
  2. *
  3. * Copyright 2011, Christopher Reichert <creichert07@gmail.com>
  4. *
  5. * Tomahawk is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * Tomahawk is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #ifndef PLAYLISTTYPESELECTORDLG_H
  19. #define PLAYLISTTYPESELECTORDLG_H
  20. #include <QDialog>
  21. #include "dllmacro.h"
  22. namespace Ui
  23. {
  24. class PlaylistTypeSelectorDlg;
  25. }
  26. class DLLEXPORT PlaylistTypeSelectorDlg : public QDialog
  27. {
  28. Q_OBJECT
  29. public:
  30. PlaylistTypeSelectorDlg( QWidget* parent = 0, Qt::WindowFlags = 0 );
  31. ~PlaylistTypeSelectorDlg();
  32. bool playlistTypeIsNormal() const;
  33. bool playlistTypeIsAuto() const;
  34. QString playlistName() const;
  35. private slots:
  36. void createNormalPlaylist();
  37. void createAutomaticPlaylist();
  38. private:
  39. bool m_isAutoPlaylist; // if not an auto playlist then its a normal playlist
  40. Ui::PlaylistTypeSelectorDlg *ui;
  41. };
  42. #endif // PlaylistTypeSelectorDlg_H