1 /* 2 * Copyright 2002-2010, Haiku Inc. All rights reserved. 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 <Application.h> 15 16 #include "DataTranslationsSettings.h" 17 18 class BDirectory; 19 class BEntry; 20 21 class DataTranslationsApplication : public BApplication { 22 public: 23 DataTranslationsApplication(); 24 virtual ~DataTranslationsApplication(); 25 26 virtual void RefsReceived(BMessage* message); 27 virtual void AboutRequested(); 28 29 BPoint WindowCorner() const { 30 return fSettings.WindowCorner(); 31 } 32 void SetWindowCorner(const BPoint& leftTop); 33 34 private: 35 void _InstallError(const char* name, status_t status); 36 status_t _Install(BDirectory& target, BEntry& entry); 37 void _NoTranslatorError(const char* name); 38 39 private: 40 DataTranslationsSettings fSettings; 41 }; 42 43 #endif // DATA_TRANSLATIONS_H 44