source: trunk/qt/app.h @ 9671

Last change on this file since 9671 was 9671, checked in by charles, 13 years ago

(trunk) update the copyright notices

  • Property svn:keywords set to Date Rev Author Id
File size: 1.2 KB
Line 
1/*
2 * This file Copyright (C) 2009 Mnemosyne LLC
3 *
4 * This file is licensed by the GPL version 2.  Works owned by the
5 * Transmission project are granted a special exemption to clause 2(b)
6 * so that the bulk of its code can remain under the MIT license.
7 * This exemption does not extend to derived works not owned by
8 * the Transmission project.
9 *
10 * $Id: app.h 9671 2009-12-05 02:19:24Z charles $
11 */
12
13#ifndef QTR_APP_H
14#define QTR_APP_H
15
16#include <QApplication>
17#include <QTimer>
18
19class Prefs;
20class Session;
21class TorrentModel;
22class TrMainWindow;
23class WatchDir;
24
25class MyApp: public QApplication
26{
27        Q_OBJECT
28
29    public:
30        MyApp( int& argc, char ** argv );
31        virtual ~MyApp( );
32
33    private:
34        Prefs * myPrefs;
35        Session * mySession;
36        TorrentModel * myModel;
37        TrMainWindow * myWindow;
38        WatchDir * myWatchDir;
39        QTimer myModelTimer;
40        QTimer myStatsTimer;
41        QTimer mySessionTimer;
42        time_t myLastFullUpdateTime;
43
44    private slots:
45        void consentGiven( );
46        void refreshPref( int key );
47        void refreshTorrents( );
48        void addTorrent( const QString& );
49
50    private:
51        void maybeUpdateBlocklist( );
52};
53
54#endif
Note: See TracBrowser for help on using the repository browser.