~bfiller/gallery-app/remove-texture

« back to all changes in this revision

Viewing changes to src/util/resource.h

merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
class Resource
33
33
{
34
34
public:
35
 
    explicit Resource(bool desktopMode, const QString& pictureDir, QQuickView *view);
 
35
    explicit Resource(bool desktopMode, const QString& pictureDir);
36
36
 
37
37
    static QUrl getRcUrl(const QString& path);
38
38
 
40
40
    const QString &databaseDirectory() const;
41
41
    const QString &thumbnailDirectory() const;
42
42
 
43
 
    int maxTextureSize() const;
44
 
    void setView(QQuickView* view);
45
 
 
46
43
    bool isVideoPath(const QString& filePath);
47
44
 
48
45
    void setVideoDirectories(const QStringList &dirs);
52
49
    QStringList m_videoDirectories;
53
50
    mutable QString m_databaseDirectory;
54
51
    mutable QString m_thumbnailDirectory;
55
 
    QQuickView* m_view;
56
 
    mutable int m_maxTextureSize;
57
52
 
58
53
    // Path to database, relative to application data path.
59
54
    static const QLatin1String DATABASE_DIR;