Last change
on this file since 14540 was
14540,
checked in by mikedld, 6 years ago
|
Instead of standard C headers include their C++ counterparts
|
-
Property svn:keywords set to
Date Rev Author Id
|
File size:
858 bytes
|
Line | |
---|
1 | /* |
---|
2 | * This file Copyright (C) 2013-2015 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: FreeSpaceLabel.h 14540 2015-06-12 22:41:36Z mikedld $ |
---|
8 | */ |
---|
9 | |
---|
10 | #ifndef QTR_FREE_SPACE_LABEL_H |
---|
11 | #define QTR_FREE_SPACE_LABEL_H |
---|
12 | |
---|
13 | #include <cstdint> |
---|
14 | |
---|
15 | #include <QLabel> |
---|
16 | #include <QString> |
---|
17 | #include <QTimer> |
---|
18 | |
---|
19 | class Session; |
---|
20 | |
---|
21 | extern "C" |
---|
22 | { |
---|
23 | struct tr_variant; |
---|
24 | } |
---|
25 | |
---|
26 | class FreeSpaceLabel: public QLabel |
---|
27 | { |
---|
28 | Q_OBJECT |
---|
29 | |
---|
30 | public: |
---|
31 | FreeSpaceLabel (QWidget * parent = nullptr); |
---|
32 | virtual ~FreeSpaceLabel () {} |
---|
33 | |
---|
34 | void setSession (Session& session); |
---|
35 | void setPath (const QString& folder); |
---|
36 | |
---|
37 | private slots: |
---|
38 | void onSessionExecuted (int64_t tag, const QString& result, tr_variant * arguments); |
---|
39 | void onTimer (); |
---|
40 | |
---|
41 | private: |
---|
42 | Session * mySession; |
---|
43 | int64_t myTag; |
---|
44 | QString myPath; |
---|
45 | QTimer myTimer; |
---|
46 | }; |
---|
47 | |
---|
48 | #endif // QTR_FREE_SPACE_LABEL_H |
---|
Note: See
TracBrowser
for help on using the repository browser.