49 lines · 985 B · C
RawDownload
////  DiskCacheEditor.h//////  Created by Clement on 3/4/15.//  Copyright 2015 High Fidelity, Inc.////  Distributed under the Apache License, Version 2.0.//  See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html// #ifndef hifi_DiskCacheEditor_h#define hifi_DiskCacheEditor_h #include <QObject>#include <QPointer> class QDialog;class QLabel;class QWindow;class QTimer; class DiskCacheEditor : public QObject {    Q_OBJECT    public:    DiskCacheEditor(QWidget* parent = nullptr);        QWindow* windowHandle();    public slots:    void toggle();    private slots:    void refresh();    void cacheInfoCallback(QString cacheDirectory, qint64 cacheSize, qint64 maximumCacheSize);    void clear(); private:    void makeDialog();        QPointer<QDialog> _dialog;    QPointer<QLabel> _path;    QPointer<QLabel> _size;    QPointer<QLabel> _maxSize;    QPointer<QTimer> _refreshTimer;}; #endif // hifi_DiskCacheEditor_h