ScummVM API documentation
clients.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 MEDIASTATION_CLIENTS_H
23 #define MEDIASTATION_CLIENTS_H
24 
25 #include "mediastation/datafile.h"
26 
27 namespace MediaStation {
28 
30 public:
31  ParameterClient() {};
32  virtual ~ParameterClient() {};
33 
34  virtual bool attemptToReadFromStream(Chunk &chunk, uint sectionType) = 0;
35 };
36 
37 enum DeviceOwnerSectionType {
38  kDeviceOwnerAllowMultipleSounds = 0x35,
39  kDeviceOwnerAllowMultipleStreams = 0x36,
40 };
41 
42 class DeviceOwner : public ParameterClient {
43 public:
44  virtual bool attemptToReadFromStream(Chunk &chunk, uint sectionType) override;
45 
46  bool _allowMultipleSounds = false;
47  bool _allowMultipleStreams = false;
48 };
49 
50 enum DocumentSectionType {
51  kDocumentContextLoadComplete = 0x10,
52  kDocumentStartupInformation = 0x2e,
53  kDocumentEntryScreen = 0x2f,
54 };
55 
56 class Document : public ParameterClient {
57 public:
58  virtual bool attemptToReadFromStream(Chunk &chunk, uint sectionType) override;
59  void readStartupInformation(Chunk &chunk);
60 
61  uint _entryScreenId = 0;
62 };
63 
64 } // End of namespace MediaStation
65 
66 #endif
Definition: actor.h:33
Definition: datafile.h:102
Definition: clients.h:29
Definition: clients.h:56
Definition: clients.h:42