2 * This file Copyright (C) 2009-2014 Mnemosyne LLC
4 * It may be used under the GNU GPL versions 2 or 3
5 * or any future license endorsed by Mnemosyne LLC.
7 * $Id: app.h 14272 2014-05-09 02:32:28Z jordan $
13 #include <QApplication>
16 #include <QTranslator>
27 class MyApp
: public QApplication
32 MyApp (int& argc
, char ** argv
);
37 bool notifyApp (const QString
& title
, const QString
& body
) const;
45 TorrentModel
* myModel
;
46 TrMainWindow
* myWindow
;
47 WatchDir
* myWatchDir
;
50 QTimer mySessionTimer
;
51 time_t myLastFullUpdateTime
;
52 QTranslator qtTranslator
;
53 QTranslator appTranslator
;
57 void onSessionSourceChanged ();
58 void refreshPref (int key
);
59 void refreshTorrents ();
60 void onTorrentsAdded (QSet
<int>);
61 void onTorrentCompleted (int);
62 void onNewTorrentChanged (int);
65 void addTorrent (const QString
&);
66 void addTorrent (const AddData
&);
69 void maybeUpdateBlocklist ();