LibEngsas
elibrary.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 - 2012 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17  MA 02110-1301 USA.
18 */
19 
20 #ifndef ELIBRARY_H
21 #define ELIBRARY_H
22 
23 #include "eglobal.h"
24 
25 class EPart;
26 class ESettingsModelItem;
27 class ECmdLineOption;
28 class EAboutPerson;
29 
30 #include <QDir>
31 #include <QUrl>
32 
39 {
40  public:
44  static QDir ePartDirectory();
53  static EPart* loadEPartFirstTime(QString ePart, QString &error);
73  static EPart* loadEPart ( EPart *part, QString ePart, QString &error, bool doSetupApplication = true);
77  static bool setupApplication ( EPart *part, QString &error );
82  static bool setupApplication ( QString shortName, QString version, QString& error );
86  static bool loadTranslations ( EPart *part, QString &error );
92  static bool loadTranslations ( QString dir, QString& error );
96  static bool loadResources ( EPart *part, QString &error );
100  static bool loadResources ( QString dir, QString &error );
101 
105  static QString manufacturer();
109  static QUrl website();
113  static ESettingsModelItem *settingsModelItem();
117  static EngSaS::AboutPersons aboutPersons();
118 };
119 
120 #endif // ELIBRARY_H