Line | |
---|
1 | /* |
---|
2 | * This file Copyright (C) Mnemosyne LLC |
---|
3 | * |
---|
4 | * This program is free software; you can redistribute it and/or modify |
---|
5 | * it under the terms of the GNU General Public License version 2 |
---|
6 | * as published by the Free Software Foundation. |
---|
7 | * |
---|
8 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
9 | * |
---|
10 | * $Id:$ |
---|
11 | */ |
---|
12 | |
---|
13 | #ifndef QTR_FREESPACE_LABEL_H |
---|
14 | #define QTR_FREESPACE_LABEL_H |
---|
15 | |
---|
16 | #include <QString> |
---|
17 | #include <QTimer> |
---|
18 | |
---|
19 | #include <QLabel> |
---|
20 | |
---|
21 | class Session; |
---|
22 | |
---|
23 | class FreespaceLabel: public QLabel |
---|
24 | { |
---|
25 | Q_OBJECT |
---|
26 | |
---|
27 | public: |
---|
28 | FreespaceLabel (Session&, const QString& path, QWidget *parent=0); |
---|
29 | virtual ~FreespaceLabel () {} |
---|
30 | void setPath (const QString& folder); |
---|
31 | |
---|
32 | private: |
---|
33 | Session& mySession; |
---|
34 | int64_t myTag; |
---|
35 | QString myPath; |
---|
36 | QTimer myTimer; |
---|
37 | |
---|
38 | private slots: |
---|
39 | void onSessionExecuted (int64_t tag, const QString& result, struct tr_variant * arguments); |
---|
40 | void onTimer (); |
---|
41 | }; |
---|
42 | |
---|
43 | #endif // QTR_FREESPACE_LABEL_H |
---|
44 | |
---|
Note: See
TracBrowser
for help on using the repository browser.