source: trunk/beos/TRApplication.h @ 1505

Last change on this file since 1505 was 1505, checked in by bvarner, 15 years ago

Brought BeOS GUI up to date with latest libtransmission. There's still some optimization that could be performed here, but the GUI is working again, and better than before thanks to the internal changes on libtransmission.

  • Property svn:keywords set to Date Rev Author Id
File size: 1.1 KB
Line 
1// $Id: TRApplication.h 1505 2007-02-22 12:49:34Z bvarner $
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
21class 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 void ArgvReceived(int32 _argc, char** _argv);
31                virtual bool QuitRequested();
32
33                virtual void MessageReceived(BMessage *message);
34               
35                static int32 Copy(void *data);
36               
37                status_t InitCheck();
38                inline BDirectory* TorrentDir() { return torrentDir; };
39        private:
40                TRWindow *window;
41                TRPrefsWindow *settings;
42                BFilePanel *openPanel;
43                BDirectory *torrentDir;
44};
45
46/** Torrent File-Type Filter */
47class TRFilter : public BRefFilter {
48public:
49        virtual bool Filter(const entry_ref *ref, BNode *node, 
50                            struct stat *st, const char *mimetype);
51};
52
53#endif /* TR_APP */
Note: See TracBrowser for help on using the repository browser.