mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
audio/liblastfm (R.I.P.) to make the library function again. It seems they were forgotten when this was converted to a free-standing port in r495869. MFH: 2021Q1 (runtime fix)
33 lines
1.3 KiB
C
33 lines
1.3 KiB
C
Add prototype for localePath() and adjust comments to reflect current
|
|
website layout
|
|
|
|
--- src/UrlBuilder.h.orig 2015-02-06 16:49:40 UTC
|
|
+++ src/UrlBuilder.h
|
|
@@ -44,10 +44,12 @@ namespace lastfm
|
|
|
|
QUrl url() const;
|
|
|
|
- /** www.last.fm becomes the local version, eg www.lastfm.de */
|
|
+ /** www.last.fm becomes the local version, e.g. www.last.fm/de */
|
|
static QUrl localize( QUrl );
|
|
- /** www.last.fm becomes m.last.fm, localisation is preserved */
|
|
- static QUrl mobilize( QUrl );
|
|
+
|
|
+ /** DEPRECATED: Returns url as-is since the mobile website redirects
|
|
+ * to the main website */
|
|
+ Q_DECL_DEPRECATED static QUrl mobilize( QUrl );
|
|
|
|
/** Use this to URL encode any database item (artist, track, album). It
|
|
* internally calls UrlEncodeSpecialChars to double encode some special
|
|
@@ -60,7 +62,10 @@ namespace lastfm
|
|
*/
|
|
static QByteArray encode( QString );
|
|
|
|
- /** returns eg. www.lastfm.de */
|
|
+ /** returns the base path of the localized website e.g. /de */
|
|
+ static QString localePath ( const QLocale& = QLocale() );
|
|
+
|
|
+ /** returns www.last.fm */
|
|
static QString host( const QLocale& = QLocale() );
|
|
|
|
/** return true if url is a last.fm url */
|