ScummVM API documentation
te_core.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef TETRAEDGE_TE_TE_CORE_H
23#define TETRAEDGE_TE_TE_CORE_H
24
25#include "common/array.h"
26#include "common/str.h"
27#include "common/path.h"
28#include "common/hashmap.h"
29#include "common/hash-str.h"
30
31#include "tetraedge/te/te_i_loc.h"
32#include "tetraedge/te/te_i_codec.h"
33#include "tetraedge/te/te_timer.h"
34
35namespace Tetraedge {
36
37class TeCore {
38public:
39 TeCore();
40
41 void addLoc(TeILoc *loc);
42 void create();
43 TeICodec *createVideoCodec(const TetraedgeFSNode &node, const Common::Path &origPath);
44 TeICodec *createVideoCodec(const Common::String &extn);
45 const Common::String &fileFlagSystemFlag(const Common::String &name) const;
46 bool fileFlagSystemFlagsContains(const Common::String &name) const;
47 Common::Array<Common::String> fileFlagSystemPossibleFlags();
48 bool fileFlagSystemPossibleFlagsContains(const Common::String &name) const;
49 void fileFlagSystemSetFlag(const Common::String &name, const Common::String &val);
50
51 const Common::String &language() const;
52 void language(const Common::String &val);
53
54 TeILoc *loc() { return _loc; }
55
56 bool onActivityTrackingAlarm();
57
58 // Note: this is not in the original, but it's not clear how the original
59 // adds things like "PC-MacOSX" to the path, and there is not clear logic
60 // to them, so here we are.
61 TetraedgeFSNode findFile(const Common::Path &path, bool quiet = false) const;
62 TetraedgeFSNode getFSNode(const Common::Path &path) const;
63
64 bool _coreNotReady;
65
66private:
67 TeILoc *_loc;
68
70 Common::FSDirectory _resourcesRoot;
71
72 TeTimer _activityTrackingTimer;
73};
74
75} // end namespace Tetraedge
76
77#endif // TETRAEDGE_TE_TE_CORE_H
Definition: fs.h:341
Definition: path.h:52
Definition: str.h:59
Definition: te_core.h:37
Definition: te_i_codec.h:34
Definition: te_i_loc.h:30
Definition: te_timer.h:33
Definition: tetraedge.h:65