X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fytregions.h;h=6dfe4b09fd8e955fa6bcd60c155f241e588fb17b;hb=HEAD;hp=1ea5e8925c0049b7b67e5856d11dc9622a2d5d40;hpb=ce2a2ef756f5a0de914b05de10eba68549dfe5bd;p=minitube diff --git a/src/ytregions.h b/src/ytregions.h index 1ea5e89..4e10ef3 100644 --- a/src/ytregions.h +++ b/src/ytregions.h @@ -21,10 +21,7 @@ $END_LICENSE */ #ifndef YTREGIONS_H #define YTREGIONS_H -#include -#if QT_VERSION >= 0x050000 #include -#endif struct YTRegion { QString id; @@ -39,17 +36,17 @@ class YTRegions : public QObject { Q_OBJECT public: - static const QList & list(); + static const QVector & list(); static const YTRegion & localRegion(); - static const YTRegion & worldwideRegion(); - static void setRegion(QString regionId); + static const YTRegion & defaultRegion(); + static void setRegion(const QString ®ionId); static QString currentRegionId(); - static YTRegion currentRegion(); - static QIcon iconForRegionId(QString regionId); + static const YTRegion ¤tRegion(); + static QIcon iconForRegionId(const QString ®ionId); private: - static YTRegion r(QString name, QString id); - static YTRegion regionById(QString id); + static YTRegion r(const QString &name, const QString &id); + static const YTRegion ®ionById(const QString &id); YTRegions(); };