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

Last change on this file since 14241 was 14241, checked in by jordan, 9 years ago

Copyedit the license's revised text: (1) remove unnecessary repitition use of the word 'license' from the top of the header and source files (2) add the standard 'we hope it's useful, but no warranty' clause to COPYING (3) make explicit that linking OpenSSL is allowed (see https://people.gnome.org/~markmc/openssl-and-the-gpl.html for background) (4) sync the Qt and GTK+ clients' license popups with COPYING's revised text

  • Property svn:keywords set to Date Rev Author Id
File size: 807 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 14241 2014-01-21 03:10:30Z jordan $
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
21class FreespaceLabel: public QLabel
22{
23    Q_OBJECT
24
25  public:
26    FreespaceLabel (Session&, const QString& path, QWidget *parent=0);
27    virtual ~FreespaceLabel () {}
28    void setPath (const QString& folder);
29
30  private:
31    Session& mySession;
32    int64_t myTag;
33    QString myPath;
34    QTimer myTimer;
35
36  private slots:
37    void onSessionExecuted (int64_t tag, const QString& result, struct tr_variant * arguments);
38    void onTimer ();
39};
40
41#endif // QTR_FREESPACE_LABEL_H
42
Note: See TracBrowser for help on using the repository browser.