Last change
on this file since 265 was
261,
checked in by titer, 16 years ago
|
Updated svn:keywords
|
-
Property svn:keywords set to
Date Rev Author Id
|
File size:
1.1 KB
|
Line | |
---|
1 | // $Id: TRApplication.h 261 2006-05-29 21:27:31Z titer $ |
---|
2 | |
---|
3 | #ifndef TR_APP |
---|
4 | #define TR_APP |
---|
5 | |
---|
6 | #include <Application.h> |
---|
7 | #include <Directory.h> |
---|
8 | #include <FilePanel.h> |
---|
9 | #include <Message.h> |
---|
10 | |
---|
11 | #include "TRWindow.h" |
---|
12 | |
---|
13 | #define APP_SIG "application/x-vnd.titer-Transmission" |
---|
14 | #define TRANSMISSION_SETTINGS "Transmission/settings" |
---|
15 | |
---|
16 | |
---|
17 | #define TR_ADD 'tAdd' |
---|
18 | #define TR_OPEN 'tOpn' |
---|
19 | #define TR_RELOAD_SETTINGS 'tRSt' |
---|
20 | |
---|
21 | class TRApplication : public BApplication { |
---|
22 | public: |
---|
23 | TRApplication(); |
---|
24 | ~TRApplication(); |
---|
25 | |
---|
26 | virtual void AboutRequested(); |
---|
27 | virtual void Pulse(); |
---|
28 | virtual void ReadyToRun(); |
---|
29 | virtual void RefsReceived(BMessage *message); |
---|
30 | virtual bool QuitRequested(); |
---|
31 | |
---|
32 | virtual void MessageReceived(BMessage *message); |
---|
33 | |
---|
34 | static int32 Copy(void *data); |
---|
35 | |
---|
36 | status_t InitCheck(); |
---|
37 | inline BDirectory* TorrentDir() { return torrentDir; }; |
---|
38 | private: |
---|
39 | TRWindow *window; |
---|
40 | TRPrefsWindow *settings; |
---|
41 | BFilePanel *openPanel; |
---|
42 | BDirectory *torrentDir; |
---|
43 | }; |
---|
44 | |
---|
45 | /** Torrent File-Type Filter */ |
---|
46 | class TRFilter : public BRefFilter { |
---|
47 | public: |
---|
48 | virtual bool Filter(const entry_ref *ref, BNode *node, |
---|
49 | struct stat *st, const char *mimetype); |
---|
50 | }; |
---|
51 | |
---|
52 | #endif /* TR_APP */ |
---|
Note: See
TracBrowser
for help on using the repository browser.