PageRenderTime 197ms CodeModel.GetById 91ms app.highlight 9ms RepoModel.GetById 92ms app.codeStats 0ms

/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
19#ifndef PLAYLISTTYPESELECTORDLG_H
20#define PLAYLISTTYPESELECTORDLG_H
21
22#include <QDialog>
23
24#include "dllmacro.h"
25
26namespace Ui
27{
28    class PlaylistTypeSelectorDlg;
29}
30
31class DLLEXPORT PlaylistTypeSelectorDlg : public QDialog
32{
33Q_OBJECT
34
35public:
36    PlaylistTypeSelectorDlg( QWidget* parent = 0, Qt::WindowFlags = 0 );
37    ~PlaylistTypeSelectorDlg();
38    bool playlistTypeIsNormal() const;
39    bool playlistTypeIsAuto() const;
40    QString playlistName() const;
41
42private slots:
43    void createNormalPlaylist();
44    void createAutomaticPlaylist();
45
46private:
47    bool m_isAutoPlaylist; // if not an auto playlist then its a normal playlist
48
49    Ui::PlaylistTypeSelectorDlg *ui;
50
51};
52
53#endif // PlaylistTypeSelectorDlg_H