xref: /haiku/src/preferences/datatranslations/DataTranslations.h (revision 1214ef1b2100f2b3299fc9d8d6142e46f70a4c3f)
1 /*
2  * Copyright 2002-2006, Haiku, Inc.
3  * Distributed under the terms of the MIT license.
4  *
5  * Authors:
6  *		Oliver Siebenmarck
7  *		Andrew McCall, mccall@digitalparadise.co.uk
8  *		Michael Wilber
9  */
10 #ifndef DATA_TRANSLATIONS_H
11 #define DATA_TRANSLATIONS_H
12 
13 
14 #include "DataTranslationsWindow.h"
15 #include "DataTranslationsSettings.h"
16 
17 #include <Application.h>
18 
19 
20 class DataTranslationsApplication : public BApplication {
21 	public:
22 		DataTranslationsApplication();
23 		virtual ~DataTranslationsApplication();
24 
25 		virtual void RefsReceived(BMessage *message);
26 		virtual void AboutRequested(void);
27 
28 		BPoint WindowCorner() const {return fSettings->WindowCorner(); }
29 		void SetWindowCorner(BPoint corner);
30 
31 	private:
32 		void _InstallError(const char* name, status_t status);
33 		status_t _Install(BDirectory& target, BEntry& entry);
34 		void _NoTranslatorError(const char* name);
35 
36 		DataTranslationsSettings* fSettings;
37 };
38 
39 #endif	// DATA_TRANSLATIONS_H
40