43 lines
821 B
C++
43 lines
821 B
C++
/*
|
|
* This file Copyright (C) 2013-2014 Mnemosyne LLC
|
|
*
|
|
* It may be used under the GNU Public License v2 or v3 licenses,
|
|
* or any future license endorsed by Mnemosyne LLC.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#ifndef QTR_FREESPACE_LABEL_H
|
|
#define QTR_FREESPACE_LABEL_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <QString>
|
|
#include <QTimer>
|
|
#include <QLabel>
|
|
|
|
class Session;
|
|
|
|
class FreespaceLabel: public QLabel
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
FreespaceLabel (Session&, const QString& path, QWidget *parent=0);
|
|
virtual ~FreespaceLabel () {}
|
|
void setPath (const QString& folder);
|
|
|
|
private:
|
|
Session& mySession;
|
|
int64_t myTag;
|
|
QString myPath;
|
|
QTimer myTimer;
|
|
|
|
private slots:
|
|
void onSessionExecuted (int64_t tag, const QString& result, struct tr_variant * arguments);
|
|
void onTimer ();
|
|
};
|
|
|
|
#endif // QTR_FREESPACE_LABEL_H
|
|
|