source: trunk/qt/app.h @ 8570

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

(trunk qt) add svn properties on the qt source files

  • Property svn:keywords set to Date Rev Author Id
File size: 1.2 KB
Line 
1/*
2 * This file Copyright (C) 2009 Charles Kerr <charles@transmissionbt.com>
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 8570 2009-05-31 19:33:48Z 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 refreshPref( int key );
46        void refreshTorrents( );
47        void addTorrent( const QString& );
48
49    private:
50        void maybeUpdateBlocklist( );
51};
52
53#endif
Note: See TracBrowser for help on using the repository browser.