completers.h 485 B

12345678910111213141516171819
  1. #ifndef COMPLETERMODELS_H
  2. #define COMPLETERMODELS_H
  3. #include <QString>
  4. #include <QCoreApplication>
  5. #include <QCompleter>
  6. #include <QStringListModel>
  7. class QObject;
  8. /** Completers for the "subscribe to podcast" dialog. */
  9. namespace Completers {
  10. QStringListModel* nameModel(QObject* parent = qApp);
  11. QStringListModel* urlModel(QObject* parent = qApp);
  12. QMap<QString, QVariant> map();
  13. void add(QString name, QString url);
  14. };
  15. #endif // COMPLETERMODELS_H