unify default no of downloaded msgs for all plugins
This commit is contained in:
parent
b8da3afffb
commit
8e2dce250c
@ -2,7 +2,7 @@
|
|||||||
#define FEEDLY_DEFINITIONS_H
|
#define FEEDLY_DEFINITIONS_H
|
||||||
|
|
||||||
#define FEEDLY_UNLIMITED_BATCH_SIZE -1
|
#define FEEDLY_UNLIMITED_BATCH_SIZE -1
|
||||||
#define FEEDLY_DEFAULT_BATCH_SIZE 20
|
#define FEEDLY_DEFAULT_BATCH_SIZE 100
|
||||||
#define FEEDLY_MAX_BATCH_SIZE 500
|
#define FEEDLY_MAX_BATCH_SIZE 500
|
||||||
#define FEEDLY_MAX_TOTAL_SIZE 5000
|
#define FEEDLY_MAX_TOTAL_SIZE 5000
|
||||||
#define FEEDLY_UNTAG_BATCH_SIZE 100
|
#define FEEDLY_UNTAG_BATCH_SIZE 100
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#define GMAIL_ATTACHMENT_SEP "####"
|
#define GMAIL_ATTACHMENT_SEP "####"
|
||||||
|
|
||||||
#define GMAIL_DEFAULT_BATCH_SIZE 50
|
#define GMAIL_DEFAULT_BATCH_SIZE 100
|
||||||
#define GMAIL_MAX_BATCH_SIZE 999
|
#define GMAIL_MAX_BATCH_SIZE 999
|
||||||
#define GMAIL_MIN_BATCH_SIZE 20
|
#define GMAIL_MIN_BATCH_SIZE 20
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
#define GREADER_DEFINITIONS_H
|
#define GREADER_DEFINITIONS_H
|
||||||
|
|
||||||
#define GREADER_UNLIMITED_BATCH_SIZE -1
|
#define GREADER_UNLIMITED_BATCH_SIZE -1
|
||||||
|
#define GREADER_DEFAULT_BATCH_SIZE 100
|
||||||
|
|
||||||
// States.
|
// States.
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
GreaderNetwork::GreaderNetwork(QObject* parent)
|
GreaderNetwork::GreaderNetwork(QObject* parent)
|
||||||
: QObject(parent), m_service(GreaderServiceRoot::Service::FreshRss), m_username(QString()), m_password(QString()),
|
: QObject(parent), m_service(GreaderServiceRoot::Service::FreshRss), m_username(QString()), m_password(QString()),
|
||||||
m_baseUrl(QString()), m_batchSize(GREADER_UNLIMITED_BATCH_SIZE) {
|
m_baseUrl(QString()), m_batchSize(GREADER_DEFAULT_BATCH_SIZE) {
|
||||||
clearCredentials();
|
clearCredentials();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,6 +104,9 @@ void InoreaderServiceRoot::start(bool freshly_activated) {
|
|||||||
syncIn();
|
syncIn();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
m_network->oauth()->login();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QString InoreaderServiceRoot::code() const {
|
QString InoreaderServiceRoot::code() const {
|
||||||
|
@ -3,10 +3,11 @@
|
|||||||
#ifndef OWNCLOUD_DEFINITIONS_H
|
#ifndef OWNCLOUD_DEFINITIONS_H
|
||||||
#define OWNCLOUD_DEFINITIONS_H
|
#define OWNCLOUD_DEFINITIONS_H
|
||||||
|
|
||||||
#define OWNCLOUD_CONTENT_TYPE_JSON "application/json; charset=utf-8"
|
#define OWNCLOUD_CONTENT_TYPE_JSON "application/json; charset=utf-8"
|
||||||
#define OWNCLOUD_API_VERSION "1.2"
|
#define OWNCLOUD_API_VERSION "1.2"
|
||||||
#define OWNCLOUD_API_PATH "index.php/apps/news/api/v1-2/"
|
#define OWNCLOUD_API_PATH "index.php/apps/news/api/v1-2/"
|
||||||
#define OWNCLOUD_MIN_VERSION "6.0.5"
|
#define OWNCLOUD_MIN_VERSION "6.0.5"
|
||||||
#define OWNCLOUD_UNLIMITED_BATCH_SIZE -1
|
#define OWNCLOUD_UNLIMITED_BATCH_SIZE -1
|
||||||
|
#define OWNCLOUD_DEFAULT_BATCH_SIZE 100
|
||||||
|
|
||||||
#endif // OWNCLOUD_DEFINITIONS_H
|
#endif // OWNCLOUD_DEFINITIONS_H
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
OwnCloudNetworkFactory::OwnCloudNetworkFactory()
|
OwnCloudNetworkFactory::OwnCloudNetworkFactory()
|
||||||
: m_url(QString()), m_fixedUrl(QString()), m_downloadOnlyUnreadMessages(false), m_forceServerSideUpdate(false),
|
: m_url(QString()), m_fixedUrl(QString()), m_downloadOnlyUnreadMessages(false), m_forceServerSideUpdate(false),
|
||||||
m_authUsername(QString()), m_authPassword(QString()), m_batchSize(OWNCLOUD_UNLIMITED_BATCH_SIZE), m_urlUser(QString()),
|
m_authUsername(QString()), m_authPassword(QString()), m_batchSize(OWNCLOUD_DEFAULT_BATCH_SIZE), m_urlUser(QString()),
|
||||||
m_urlStatus(QString()), m_urlFolders(QString()), m_urlFeeds(QString()), m_urlMessages(QString()),
|
m_urlStatus(QString()), m_urlFolders(QString()), m_urlFeeds(QString()), m_urlMessages(QString()),
|
||||||
m_urlFeedsUpdate(QString()), m_urlDeleteFeed(QString()), m_urlRenameFeed(QString()) {}
|
m_urlFeedsUpdate(QString()), m_urlDeleteFeed(QString()), m_urlRenameFeed(QString()) {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user