Files
transmission/qt/FreeSpaceLabel.h
Mike Gelfand 07912d230b Use PascalCase for Qt client filenames
Split FileTree.{h,cc} and FilterBar.{h,cc} files so that each class
is in its own file.

This breaks translations (some classes got renamed => context changed),
to be fixed by next commit (along with Tx sync).
2015-06-10 21:27:11 +00:00

49 lines
853 B
C++

/*
* This file Copyright (C) 2013-2015 Mnemosyne LLC
*
* It may be used under the GNU GPL versions 2 or 3
* or any future license endorsed by Mnemosyne LLC.
*
* $Id$
*/
#ifndef QTR_FREE_SPACE_LABEL_H
#define QTR_FREE_SPACE_LABEL_H
#include <stdint.h>
#include <QString>
#include <QTimer>
#include <QLabel>
class Session;
extern "C"
{
struct tr_variant;
}
class FreeSpaceLabel: public QLabel
{
Q_OBJECT
public:
FreeSpaceLabel (QWidget * parent = 0);
virtual ~FreeSpaceLabel () {}
void setSession (Session& session);
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, tr_variant * arguments);
void onTimer ();
};
#endif // QTR_FREE_SPACE_LABEL_H