~ci-train-bot/thumbnailer/thumbnailer-ubuntu-yakkety-landing-072

« back to all changes in this revision

Viewing changes to include/internal/thumbnailer.h

  • Committer: CI Train Bot
  • Author(s): Michi Henning
  • Date: 2015-09-15 11:04:11 UTC
  • mfrom: (125.1.2 landing150915)
  • Revision ID: ci-train-bot@canonical.com-20150915110411-233xw0fljaq7p2o0
Landing changes on devel to trunk.
Approved by: James Henstridge

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#pragma once
20
20
 
21
21
#include <internal/artdownloader.h>
 
22
#include <internal/cachehelper.h>
22
23
 
23
 
#include <core/persistent_cache_stats.h>
24
 
#include <core/persistent_string_cache.h>
25
24
#include <QObject>
26
25
#include <QSize>
27
26
 
145
144
        return downloader_.get();
146
145
    }
147
146
 
148
 
    typedef std::vector<core::PersistentStringCache*> CacheVec;
 
147
    typedef std::vector<PersistentCacheHelper*> CacheVec;
149
148
    CacheVec select_caches(CacheSelector selector) const;
150
149
 
151
 
    core::PersistentStringCache::UPtr full_size_cache_;  // Small cache of full (original) size images.
152
 
    core::PersistentStringCache::UPtr thumbnail_cache_;  // Large cache of scaled images.
153
 
    core::PersistentStringCache::UPtr failure_cache_;    // Cache for failed attempts (value is always empty).
154
 
    int max_size_;                                       // Max thumbnail size in pixels.
155
 
    int retry_not_found_hours_;                          // Retry wait time for authoritative "no artwork" answer.
156
 
    int retry_error_hours_;                              // Retry wait time for unexpected server errors.
157
 
    std::chrono::milliseconds extraction_timeout_;       // How long to wait before giving up during extraction.
 
150
    PersistentCacheHelper::UPtr full_size_cache_;         // Small cache of full (original) size images.
 
151
    PersistentCacheHelper::UPtr thumbnail_cache_;         // Large cache of scaled images.
 
152
    PersistentCacheHelper::UPtr failure_cache_;           // Cache for failed attempts (value is always empty).
 
153
    int max_size_;                                        // Max thumbnail size in pixels.
 
154
    int retry_not_found_hours_;                           // Retry wait time for authoritative "no artwork" answer.
 
155
    int retry_error_hours_;                               // Retry wait time for unexpected server errors.
 
156
    std::chrono::milliseconds extraction_timeout_;        // How long to wait before giving up during extraction.
 
157
    std::chrono::system_clock::time_point nw_fail_time_;  // Last time we had transient network error.
158
158
    std::unique_ptr<ArtDownloader> downloader_;
159
159
 
160
160
    friend class RequestBase;