|
|
@ -359,19 +359,26 @@ class RssStream : public QObject{ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
QString getAlias() const{ |
|
|
|
QString getAlias() const{ |
|
|
|
|
|
|
|
qDebug("getAlias() returned Alias: %s", (const char*)alias.toUtf8()); |
|
|
|
return alias; |
|
|
|
return alias; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void setAlias(QString _alias){ |
|
|
|
void setAlias(QString _alias){ |
|
|
|
|
|
|
|
qDebug("setAlias() to %s", (const char*)_alias.toUtf8()); |
|
|
|
alias = _alias; |
|
|
|
alias = _alias; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Return the alias if the stream has one, the url if it has no alias
|
|
|
|
// Return the alias if the stream has one, the url if it has no alias
|
|
|
|
QString getAliasOrUrl() const{ |
|
|
|
QString getAliasOrUrl() const{ |
|
|
|
if(!alias.isEmpty()) |
|
|
|
if(!alias.isEmpty()) { |
|
|
|
|
|
|
|
qDebug("getAliasOrUrl() returned alias: %s", (const char*)alias.toUtf8()); |
|
|
|
return alias; |
|
|
|
return alias; |
|
|
|
if(!title.isEmpty()) |
|
|
|
} |
|
|
|
|
|
|
|
if(!title.isEmpty()) { |
|
|
|
|
|
|
|
qDebug("getAliasOrUrl() returned title: %s", (const char*)title.toUtf8()); |
|
|
|
return title; |
|
|
|
return title; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
qDebug("getAliasOrUrl() returned url: %s", (const char*)url.toUtf8()); |
|
|
|
return url; |
|
|
|
return url; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -676,6 +683,8 @@ class RssManager : public QObject{ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
~RssManager(){ |
|
|
|
~RssManager(){ |
|
|
|
|
|
|
|
qDebug("Deleting RSSManager"); |
|
|
|
|
|
|
|
saveStreamList(); |
|
|
|
qDeleteAll(streams); |
|
|
|
qDeleteAll(streams); |
|
|
|
delete downloader; |
|
|
|
delete downloader; |
|
|
|
} |
|
|
|
} |
|
|
|