source: trunk/qt/freespace-label.h @ 14378

Last change on this file since 14378 was 14378, checked in by mikedld, 8 years ago

Remove redundant "struct" keyword use in C++ code (Qt client)

  • Property svn:keywords set to Date Rev Author Id
File size: 837 bytes
Line 
1/*
2 * This file Copyright (C) 2013-2014 Mnemosyne LLC
3 *
4 * It may be used under the GNU GPL versions 2 or 3
5 * or any future license endorsed by Mnemosyne LLC.
6 *
7 * $Id: freespace-label.h 14378 2014-12-12 23:21:04Z mikedld $
8 */
9
10#ifndef QTR_FREESPACE_LABEL_H
11#define QTR_FREESPACE_LABEL_H
12
13#include <stdint.h>
14
15#include <QString>
16#include <QTimer>
17#include <QLabel>
18
19class Session;
20
21extern "C"
22{
23  struct tr_variant;
24}
25
26class FreespaceLabel: public QLabel
27{
28    Q_OBJECT
29
30  public:
31    FreespaceLabel (Session&, const QString& path, QWidget *parent=0);
32    virtual ~FreespaceLabel () {}
33    void setPath (const QString& folder);
34
35  private:
36    Session& mySession;
37    int64_t myTag;
38    QString myPath;
39    QTimer myTimer;
40
41  private slots:
42    void onSessionExecuted (int64_t tag, const QString& result, tr_variant * arguments);
43    void onTimer ();
44};
45
46#endif // QTR_FREESPACE_LABEL_H
47
Note: See TracBrowser for help on using the repository browser.