epoc32/include/gfxtranseffect/gfxtransdatatype.h
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
     1.1 --- a/epoc32/include/gfxtranseffect/gfxtransdatatype.h	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,124 +0,0 @@
     1.4 -// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 -// All rights reserved.
     1.6 -// This component and the accompanying materials are made available
     1.7 -// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     1.8 -// which accompanies this distribution, and is available
     1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 -//
    1.11 -// Initial Contributors:
    1.12 -// Nokia Corporation - initial contribution.
    1.13 -//
    1.14 -// Contributors:
    1.15 -//
    1.16 -// Description:
    1.17 -// GFXTRANSDATATYPES.H
    1.18 -// 
    1.19 -//
    1.20 -
    1.21 -#ifndef _GFXTRANSDATATYPES_H_
    1.22 -#define _GFXTRANSDATATYPES_H_
    1.23 -
    1.24 -#include <coecntrl.h>
    1.25 -
    1.26 -//Various types for data passing between client and adaptor.
    1.27 -//Pointers passed should not transfer ownership, the client is responsible for all data.
    1.28 -
    1.29 -
    1.30 -enum TPolicy
    1.31 -	{
    1.32 -	ENotSupported, 	// Not supported by the engine, the client will not call MGfxTransEngine::StartTransition
    1.33 -	ESupported,		// Supported by the engine, the client will call MGfxTransEngine::StartTransition
    1.34 -	EAbort			// Not supported by the engine, but the engine wants to be informed so that it can
    1.35 -					// abort other transitions, the client will not call MGfxTransEngine::StartTransition
    1.36 -	};
    1.37 -
    1.38 -/**
    1.39 - *  TControlPolicy
    1.40 - * @publishedPartner
    1.41 - */
    1.42 -class TControlPolicy 
    1.43 -	{
    1.44 -public:
    1.45 -	TUid iId;		// The Uid of the registered control this policy applies to
    1.46 -	TInt iAction;	// The Action of the transition that this policy applies to
    1.47 -	TPolicy iPolicy;// the policy
    1.48 -	};
    1.49 -
    1.50 -/**
    1.51 - *  CParticipantData
    1.52 - * 
    1.53 - *  Contains the data that the client collects for a participant in a transition
    1.54 - * 
    1.55 - * The data can be queries from the client using MGfxTransClient::GetTransitionData
    1.56 - * All the data is available when the client calls MGfxTransEngine::StartTransition() 
    1.57 - * unless iFailed is ETrue. 
    1.58 - *
    1.59 - * The client is responsible for deleting the data.
    1.60 - */	
    1.61 -class CParticipantData : public CBase
    1.62 -	{
    1.63 -public:
    1.64 -	~CParticipantData()
    1.65 -		{
    1.66 -		if(iBeginCapture)
    1.67 -			{
    1.68 -			iBeginCapture->Close();
    1.69 -			delete iBeginCapture;
    1.70 -			}
    1.71 -		if(iEndCapture && (iBeginCapture != iEndCapture))
    1.72 -			{
    1.73 -			iEndCapture->Close();
    1.74 -			delete iEndCapture;
    1.75 -			}
    1.76 -		}
    1.77 -	TRect iBeginRect;				// The begin rect for this participant
    1.78 -	TRect iEndRect;					// The end rect for this participant
    1.79 -	RWsGraphicMsgBuf* iBeginCapture;// The begin capture for this participant, 0 if not existing
    1.80 -	RWsGraphicMsgBuf* iEndCapture; 	// The begin capture for this participant, 0 if not existing
    1.81 -	TInt iBeginZ; 					// Begin Z depth for this participant, -1 if unknown
    1.82 -	TInt iEndZ;						// End Z depth for this participant, -1 if unknown
    1.83 -	TUid iLayerType;				// the Uid for this particpant set with GfxTransEffect::SetHints()
    1.84 -	TUint iFlags;					// The flags for this participant set with GfxTransEffect::SetHints()
    1.85 -	const CCoeControl* iKey; 		// The control for this participant, not owning
    1.86 -	};
    1.87 -	
    1.88 -	
    1.89 -/**
    1.90 - *  CTransitionData
    1.91 - * 
    1.92 - *  Contains the data that the client collects for a transition
    1.93 - * 
    1.94 - * The data can be queries from the client using MGfxTransClient::GetTransitionData
    1.95 - * All the data is available when the client calls MGfxTransEngine::StartTransition() 
    1.96 - * unless iFailed is ETrue. 
    1.97 - *
    1.98 - * The client is responsible for deleting the data.
    1.99 - *
   1.100 - * @publishedPartner
   1.101 - */
   1.102 -class CTransitionData : public CBase
   1.103 -	{
   1.104 -public:
   1.105 -	~CTransitionData()
   1.106 -		{
   1.107 -		iSubControls.Reset();
   1.108 -		iSubControls.Close();
   1.109 -		}
   1.110 -	const CCoeControl* iKey;// the registered control, not owning
   1.111 -	TPoint iBeginWOPos;   	// the begin position of the windowowning parent
   1.112 -	TPoint iEndWOPos;		// the end position of the windowowning parent
   1.113 -	TUid  iUid;				// the uid for the registered control
   1.114 -	TBool iNLayered;		// ETrue if the control is NLayered
   1.115 -	TUint iAction;			// the aAction for this transition
   1.116 -	TBool iFailed;			// ETrue if the client have failed in collecting the data,
   1.117 -							// in this case the data might be incorrect
   1.118 -	TPolicy iPolicy;		// The policy for this transition
   1.119 -	const TDesC8* iExData;	// the data set with GfxTransEffect::SetTransitionData(), NULL if no data, not owning
   1.120 -	TUint iExDataType;		// The type of the data set with GfxTransEffect::SetTransitionData()
   1.121 -	const CParticipantData* iBaseControl; //data for the registered control, not owning	
   1.122 -	RPointerArray<const CParticipantData> iSubControls; //data for the layers in a Nlayered control, not owning
   1.123 -	};
   1.124 -//---
   1.125 -
   1.126 -
   1.127 -#endif