advancedsearchdialog.h 1.88 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
/***************************************************************************
                          advancedsearchdialog.h
                             -------------------
    begin                : Thu Jul 31 00:31:51 2003
    copyright            : (C) 2003 by Scott Wheeler
    email                : wheeler@kde.org
***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef ADVANCEDSEARCHDIALOG_H
#define ADVANCEDSEARCHDIALOG_H

#include <kdialogbase.h>

23 24
#include "playlistsearch.h"

25
class KLineEdit;
26
class QGroupBox;
27 28
class QRadioButton;
class SearchLine;
29 30 31

class AdvancedSearchDialog : public KDialogBase
{
32 33
    Q_OBJECT

34
public:
35 36 37 38
    struct Result
    {
        DialogCode result;
        PlaylistSearch search;
39
        QString playlistName;
40 41
    };

42 43 44 45
    AdvancedSearchDialog(const QString &defaultName, 
                         QWidget *parent = 0,
                         const char *name = 0);

46 47
    virtual ~AdvancedSearchDialog();

48 49 50 51 52 53
public slots:
    Result exec();

protected slots:
    virtual void accept();
    
54 55
private:
    QWidget *m_criteria;
56
    PlaylistSearch m_search;
57
    QString m_playlistName;
58
    QValueList<SearchLine *> m_searchLines;
59
    KLineEdit *m_playlistNameLineEdit;
60 61
    QRadioButton *m_matchAnyButton;
    QRadioButton *m_matchAllButton;
62 63 64
};

#endif