Work on guessing feeds.
This commit is contained in:
parent
b16d14e175
commit
db9b6c3c0a
@ -44,6 +44,17 @@ FeedsModelStandardFeed *FeedsModelStandardFeed::loadFromRecord(const QSqlRecord
|
||||
return feed;
|
||||
}
|
||||
|
||||
FeedsModelStandardFeed *FeedsModelStandardFeed::guessFeed(const QString &url,
|
||||
const QString &username,
|
||||
const QString &password) {
|
||||
// TODO: http://www.google.com/s2/favicons?domain=root.cz
|
||||
// ZISKAT ikonu (napsat taky aby se dala ikona pro
|
||||
// dane url ziskavat taky samostatne
|
||||
// pak ziskat informace o kanalu
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
QVariant FeedsModelStandardFeed::data(int column, int role) const {
|
||||
switch (role) {
|
||||
case Qt::DisplayRole:
|
||||
|
@ -81,6 +81,13 @@ class FeedsModelStandardFeed : public FeedsModelFeed {
|
||||
// Loads standard feed object from given SQL record.
|
||||
static FeedsModelStandardFeed *loadFromRecord(const QSqlRecord &record);
|
||||
|
||||
// Tries to guess feed hidden under given URL
|
||||
// and uses given credentials.
|
||||
// Returns NULL if something failed.
|
||||
static FeedsModelStandardFeed *guessFeed(const QString &url,
|
||||
const QString &username,
|
||||
const QString &password);
|
||||
|
||||
protected:
|
||||
// Persistently stores given messages into the database
|
||||
// and updates existing messages if newer version is
|
||||
|
@ -10,8 +10,6 @@ namespace Ui {
|
||||
class FormStandardFeedDetails;
|
||||
}
|
||||
|
||||
// TODO: http://fvicon.com/
|
||||
|
||||
class FeedsModel;
|
||||
class FeedsModelStandardFeed;
|
||||
class FeedsModelCategory;
|
||||
|
Loading…
x
Reference in New Issue
Block a user