diff -r cad71a31b7fc -r e36f3802f733 srsf/ttscustomcommands/src/nssttscustomcommandcommon.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/srsf/ttscustomcommands/src/nssttscustomcommandcommon.h Wed Sep 01 12:29:17 2010 +0100 @@ -0,0 +1,101 @@ +/* +* Copyright (c) 2004-2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Common header file for TTS custom commands, both client & +* server side need this +* +*/ + + +#ifndef NSSTTSCUSTOMCOMMANDCOMMON_H +#define NSSTTSCUSTOMCOMMANDCOMMON_H + +// INCLUDE FILES +#include + +// FORWARD DECLARATIONS +class TTtsParsedText; + +// CONSTANTS + +const TUid KUidInterfaceTts = { 0x101FF939 }; + +// DATA TYPES + +// Custom command messages +enum TTtsCustomCommandMessages + { + ETtsAddStyle, + ETtsDeleteStyle, + ETtsGetPosition, + ETtsNumberOfStyles, + ETtsOpenParsedText, + ETtsSetPosition, + ETtsStyleID, // Style query based on ID + ETtsStyleIndex, // Style query based on index + ETtsSetDefaultStyle, + ETtsGetDefaultStyle, + ETtsSetSpeakingRate, + ETtsGetSpeakingRate, + ETtsSupportedLanguages, + ETtsSupportedLanguagesCount, + ETtsSupportedVoices, + ETtsSupportedVoicesCount + }; + +// Packages +typedef TPckgBuf TTtsStyleIDPckg; +typedef TPckgBuf TTtsStyleIDPtrPckg; +typedef TPckgBuf TTtsIntPckg; +typedef TPckgBuf TTtsIntPtrPckg; +typedef TPckgBuf TTtsUintPckg; +typedef TPckgBuf TTtsUintPtrPckg; +typedef TPckgBuf TTtsStylePtrPckg; +typedef TPckgBuf TTtsParsedTextPckg; +typedef TPckgBuf*> TTtsRArrayLanguagePtrPckg; +typedef TPckgBuf TTtsLanguagePckg; +typedef TPckgBuf*> TTtsRArrayTtsStylePtrPckg; + +// CLASS DECLARATION + +/** +* Container for CTtsParsedText. +* +* @lib TtsCustomCommands.lib +* @since 2.8 +*/ +class TTtsParsedText + { + public: + + /** + * C++ default constructor. + */ + TTtsParsedText() {} + + /** + * C++ constructor for this class. + * + * @since 2.8 + * @param "CtsParsedText* aParsedText" Pointer to parsed text. + */ + TTtsParsedText( CTtsParsedText* aParsedText ) : + iParsedText( aParsedText ) {} + + // Pointer to parsed text + CTtsParsedText* iParsedText; + }; + +#endif // NSSTTSCUSTOMCOMMANDCOMMON_H + +// End of file