#ifndef MYTHUIMETADATARESULTS_H_
#define MYTHUIMETADATARESULTS_H_

#include "mythuibuttonlist.h"

#include "metadatacommon.h"
#include "mythmetaexp.h"

class MetadataImageDownload;

class META_PUBLIC MetadataResultsDialog : public MythScreenType
{
    Q_OBJECT

  public:
    MetadataResultsDialog(MythScreenStack *lparent,
                          const MetadataLookupList &results);
    ~MetadataResultsDialog();

    bool Create() override; // MythScreenType

  signals:
    void haveResult(RefCountHandler<MetadataLookup>);

  private:
    MetadataLookupList m_results;
    MythUIButtonList  *m_resultsList;
    MetadataImageDownload *m_imageDownload;

  private slots:
    void customEvent(QEvent *event) override; // MythUIType

    void cleanCacheDir();
    void sendResult(MythUIButtonListItem* item);
};

#endif
