/* ScummVM - Graphic Adventure Engine * * ScummVM is the legal property of its developers, whose names * are too numerous to list here. Please refer to the COPYRIGHT * file distributed with this source distribution. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * */ #ifndef XEEN_DIALOGS_COPY_PROTECTION_H #define XEEN_DIALOGS_COPY_PROTECTION_H #include "mm/xeen/dialogs/dialogs_input.h" #include "common/array.h" namespace MM { namespace Xeen { class CopyProtection : public Input { struct ProtectionEntry { uint8 _pageNum; uint8 _lineNum; uint8 _wordNum; Common::String _text; }; private: Common::Array _entries; private: /** * Constructor */ CopyProtection(XeenEngine *vm); /** * Execute the dialog */ bool execute(); /** * Load the copy protection entries */ void loadEntries(); #ifdef USE_TTS /** * Voices text with TTS * @param text Text to voice */ void speakText(const Common::String &text) const; #endif public: /** * Show the dialog */ static bool show(XeenEngine *vm); }; } // End of namespace Xeen } // End of namespace MM #endif