2 * This file Copyright (C) Mnemosyne LLC
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.
8 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
10 * $Id: app.h 11437 2010-11-25 03:00:25Z charles $
16 #include <QApplication>
19 #include <QTranslator>
30 class MyApp
: public QApplication
35 MyApp( int& argc
, char ** argv
);
40 bool notify( const QString
& title
, const QString
& body
) const;
48 TorrentModel
* myModel
;
49 TrMainWindow
* myWindow
;
50 WatchDir
* myWatchDir
;
53 QTimer mySessionTimer
;
54 time_t myLastFullUpdateTime
;
55 QTranslator qtTranslator
;
56 QTranslator appTranslator
;
60 void onSessionSourceChanged( );
61 void refreshPref( int key
);
62 void refreshTorrents( );
63 void onTorrentsAdded( QSet
<int> );
64 void onNewTorrentChanged( int );
67 void addTorrent( const QString
& );
68 void addTorrent( const AddData
& );
71 void maybeUpdateBlocklist( );