mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-19 12:21:52 +02:00
Add Tomahawk.currentCountry to JS env
This commit is contained in:
@@ -190,6 +190,13 @@ JSResolverHelper::uuid() const
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
JSResolverHelper::currentCountry() const
|
||||
{
|
||||
return static_cast<int>(QLocale::system().country());
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
JSResolverHelper::addUrlResult( const QString& url, const QVariantMap& result )
|
||||
{
|
||||
|
@@ -135,6 +135,7 @@ public slots:
|
||||
QString readCompressed( const QString& fileName );
|
||||
QString instanceUUID();
|
||||
QString uuid() const;
|
||||
int currentCountry() const;
|
||||
QString compress( const QString& data );
|
||||
QVariantMap resolverData();
|
||||
|
||||
|
Reference in New Issue
Block a user