advancedsearchdialog.h 1.69 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 QGroupBox;
26 27
class QRadioButton;
class SearchLine;
28 29 30

class AdvancedSearchDialog : public KDialogBase
{
31 32
    Q_OBJECT

33
public:
34 35 36 37 38 39
    struct Result
    {
        DialogCode result;
        PlaylistSearch search;
    };

40 41 42
    AdvancedSearchDialog(QWidget *parent = 0, const char *name = 0);
    virtual ~AdvancedSearchDialog();

43 44 45 46 47 48
public slots:
    Result exec();

protected slots:
    virtual void accept();
    
49 50
private:
    QWidget *m_criteria;
51 52 53 54
    PlaylistSearch m_search;
    QValueList<SearchLine *> m_searchLines;
    QRadioButton *m_matchAnyButton;
    QRadioButton *m_matchAllButton;
55 56 57
};

#endif