flashliteapi_3_1/ns/inc/NPNFlashDefs.h
author William Roberts <williamr@symbian.org>
Fri, 23 Apr 2010 14:37:17 +0100
branchRCL_3
changeset 22 c82a39b81a38
parent 0 2e3d3ce01487
permissions -rw-r--r--
Rework addition of Symbian splash screen to reduce the source impact (uses SVG from Bug 2414) Notes: by using the OPTION SOURCEDIR parameter in the mifconv extension instructions, I can arrange to use the same source file name in sfimage, without having to export over the original Nokia file. This means that the name inside splashscreen.mbg is the same, which removes the need for the conditional compilation in SplashScreen.cpp, and gets rid of sf_splashscreen.mmp.

/*
* Copyright (c) 2006-2010 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:  Flash Netscape Plugin Parameter Definitions
*
*/


#ifndef NPNFLASH_DEFS_H
#define NPNFLASH_DEFS_H

//These definitions are used for sending paramter to flash  plug-in through 
//web pages.

//Atribute to be set during newp call only
_LIT( KFlashInteractionMode , "interactionmode" );
_LIT(KFlashSwfSrc, "src");
_LIT(KFlashSwfMovie, "movie");
_LIT(KFlashBase, "base");
_LIT(KLoop, "loop");
_LIT(KQuality, "quality");
_LIT(KBackgroundcolor, "backgroundcolor");
_LIT(KBgcolor, "bgcolor");
_LIT(KWMode,"wmode");
_LIT(KWAlpha,"alpha");
_LIT(KFlashVars,"flashvars");
_LIT(KFlashName,"name");
_LIT(KFlashPlay,"play");
_LIT(KFlashAllowFullScreen,"allowFullScreen");
_LIT(KFlashAllowMobiFullScreen,"allowMobiFullScreen");
_LIT(KScale, "scale");
_LIT(KAlign,"align");
_LIT(KSAlign,"salign");

_LIT(KShowAll,"showall");
_LIT(KNoBorder,"noborder");
_LIT(KExactFit,"exactfit");
_LIT(KNoScale,"noscale");

_LIT(KLeft,"left");
_LIT(KRight,"right");
_LIT(KTop,"top");
_LIT(KBottom,"bottom");

_LIT(KTopLeft,"TL");
_LIT(KLeftTop,"LT");
_LIT(KTopRight,"TR");
_LIT(KRightTop,"RT");
_LIT(KBottomLeft,"BL");
_LIT(KLeftBottom,"LB");
_LIT(KBottomRight,"BR");
_LIT(KRightBottom,"RB");

//interaction mode Values
_LIT( KValueFlashAnimation, "anim" );    
_LIT( KValueScreensaverMode, "screensaver" );

//values for quality
_LIT(KHigh,"high");
_LIT(KMedium,"medium");
_LIT(KLow,"low");

//values for Loop
_LIT(KOn,"on");
_LIT(KOff,"off");
_LIT(KTrue,"true");
_LIT(KFalse,"false");
_LIT(KYes,"yes");	
_LIT(KNo,"no");	

//value for background transparency
_LIT(KWModeTransparent,"transparent");
_LIT(KWModeOpaque,"opaque");	
_LIT(KWModeWindow,"window");

_LIT(KSCriptAccess, "allowscriptaccess");

_LIT(KSCriptAccessAlways, "always");
_LIT(KSCriptAccessnever, "never");
_LIT(KSCriptAccessSameDomain, "SameDomain");

/**
*  Value sent by plug-in for player status.
*
*  @lib
*  @since Series 60 3rd Edition, Feature Pack 1
*/ 
/**
*  Value sent by plug-in for player status.
*
*  @lib
*  @since Series 60 3rd Edition, Feature Pack 1
*/ 
enum TFlashPlayerState //
            {
            EContentError = -2,
            EInstanceError = -1,
            EEngineNotInitialized,
            EEngineInitialized,
            EContentClosed = 2,
            EContentOpening,
            EContentOpen,
            EContentPreparing,
            EContentReady, // player's stopped state
            EContentPlaying,
            EPlayerPaused,
            EPlayerStopped,
            EPlayComplete
            };

#endif //NPNFLASH_DEFS_H