uint newestitem;
QString continuation;
+ uint updated;
QDateTime lastUpdated;
unread = 0;
reader = gr;
special = 0;
+ updated = 0;
}
void fetch(bool);
void addEntry(Entry *);
void delEntry(Entry *);
- void signalUpdated(); // TODO: Clean this up...
QList<Entry *> getEntries();
int getEntriesSize() { return entries.size(); }
void markRead();
private:
QHash<QString, Entry *> entries;
QBuffer buffer;
+ QNetworkReply *reply;
+
+ private slots:
+ void fetchFinished();
};
Q_DECLARE_METATYPE(Feed *)
void setLogin(QString l) { login = l; }
void setPasswd(QString p) { passwd = p; }
void logOut() {
- SID = NULL;
+ auth = NULL;
token = NULL;
updateSubscriptionsPending = false;
updateUnreadPending = false;
- SIDPending = false;
+ authPending = false;
+ }
+
+ QByteArray getAuth() {
+ return auth;
}
private slots:
void downloadFinished(QNetworkReply *reply);
private:
- char *SID;
+ QByteArray auth;
QBuffer buffer;
bool updateSubscriptionsPending;
bool updateUnreadPending;
- bool SIDPending;
+ bool authPending;
- void getSID();
+ void clientLogin();
void parseSubscriptions(QByteArray data);
void parseUnread(QByteArray data);
- void parseFeed(QByteArray data);
QUrl login_url;
QUrl subscriptions_url;