diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-17 02:27:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-17 02:27:43 +0000 |
commit | 8f37a4f755113e7440ae985111d36985d500cc95 (patch) | |
tree | 3750f2ad5f3ffaac64a98b5fc1a0389838296669 /kresources/carddav/resource.cpp | |
parent | 6d83f2c4e31c985122f6de9dab69d9f1d727b48a (diff) | |
download | tdepim-8f37a4f755113e7440ae985111d36985d500cc95.tar.gz tdepim-8f37a4f755113e7440ae985111d36985d500cc95.zip |
Slew of fixes and upgrades, including:
Added kaddressbook automatic sync
Added carddav autosync options
Added DCOP calls for kaddressbook and korganizer manual resync
Repaired Kontact refresh button through above mentioned DCOP calls
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1164528 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kresources/carddav/resource.cpp')
-rw-r--r-- | kresources/carddav/resource.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/kresources/carddav/resource.cpp b/kresources/carddav/resource.cpp index 315b6270d..a5172d9e5 100644 --- a/kresources/carddav/resource.cpp +++ b/kresources/carddav/resource.cpp @@ -54,8 +54,8 @@ const int ResourceCardDav::CACHE_DAYS = 90; const int ResourceCardDav::DEFAULT_RELOAD_INTERVAL = 10; const int ResourceCardDav::DEFAULT_SAVE_INTERVAL = 10; -//const int ResourceCardDav::DEFAULT_RELOAD_POLICY = ResourceCached::ReloadInterval; -//const int ResourceCardDav::DEFAULT_SAVE_POLICY = ResourceCached::SaveDelayed; +const int ResourceCardDav::DEFAULT_RELOAD_POLICY = ResourceCached::ReloadInterval; +const int ResourceCardDav::DEFAULT_SAVE_POLICY = ResourceCached::SaveDelayed; /*========================================================================= | UTILITY @@ -237,7 +237,7 @@ CardDavPrefs* ResourceCardDav::createPrefs() const { } void ResourceCardDav::init() { - // default settings +// // default settings // setReloadInterval(DEFAULT_RELOAD_INTERVAL); // setReloadPolicy(DEFAULT_RELOAD_POLICY); // setSaveInterval(DEFAULT_SAVE_INTERVAL); @@ -338,10 +338,6 @@ void ResourceCardDav::loadingQueuePop() { mLoader->setType(0); mLoader->setUseURI(mPrefs->getUseURI()); - //TQDateTime dt(TQDate::currentDate()); - //mLoader->setRange(dt.addDays(-CACHE_DAYS), dt.addDays(CACHE_DAYS)); - //mLoader->setGetAll(); - mLoadingQueueReady = false; log("starting actual download job"); |