localisation/apparchitecture/apgrfx/APGPRIV.H
author Maciej Seroka <maciejs@symbian.org>
Tue, 03 Aug 2010 14:51:01 +0100
branchSymbian3
changeset 58 7a02f8565ef5
parent 57 b8d18c84f71c
permissions -rw-r--r--
Implemented Language-setting smoke test for ATS4

// Copyright (c) 1997-2009 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:
//

#ifndef __APAPRIV_H__
#define __APAPRIV_H__

#if !defined(__E32STD_H__)
#include <e32std.h>
#endif
#if !defined(__S32MEM_H__)
#include <s32mem.h>
#endif
#if !defined(__GDI_H__)
#include <gdi.h>
#endif
#ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
#if !defined(__APAID_PARTNER_H__)
#include "apaidpartner.h"
#endif
#else
#include <apaid.h>
#endif //SYMBIAN_ENABLE_SPLIT_HEADERS

// classes referenced:
class CApaMaskedBitmap;
//

class HBufBuf : public TBufBuf
	{
public:
	static HBufBuf* NewL(CBufBase& aBuf,TInt aPos,TInt aMode=ERead|EWrite);
private:
	void DoRelease();
	};


class CApaIconPicture : public CPicture
	{
public:
	static CApaIconPicture* NewL(const TSize& aIconSizeInTwips, const TUid aAppUid);
	//
	void Draw(CGraphicsContext& aGc,const TPoint& aTopLeft,const TRect& aClipRect,MGraphicsDeviceMap* aMap)const;
	TPictureCapability Capability() const;
	TInt ScaleFactorWidth() const;
	TInt ScaleFactorHeight() const;
	void SetScaleFactor(TInt aScaleFactorWidth,TInt aScaleFactorHeight);
	void GetOriginalSizeInTwips(TSize& aOriginalSize) const;
	//
	void InternalizeL(RReadStream& aStream);
	void ExternalizeL(RWriteStream& aStream)const;
	~CApaIconPicture();
private: 
	CApaIconPicture(const TSize& aIconSizeInTwips, const TUid aAppUid);
	void ConstructL();
	void CreateIconL();
private:
	CApaMaskedBitmap* iIcon; // null unless the current format is EIcon
	TUid iAppUid;
	TSize iOriginalSizeInTwips;
	TInt iScaleFactorWidth;		   // Stored as percent * 10
	TInt iScaleFactorHeight;	   // Stored as percent * 10
	TSize iDisplaySizeInPixels;
	TSize iDisplaySizeInTwips;
	};

NONSHARABLE_CLASS(CApaAppServiceInfoArrayImpl) : public CApaAppServiceInfoArray
	{
public:
	static CApaAppServiceInfoArrayImpl* NewL(CArrayFix<TApaAppServiceInfo>* aServiceInfoArray);
	~CApaAppServiceInfoArrayImpl();
	TArray<TApaAppServiceInfo> Array();
private:
	CApaAppServiceInfoArrayImpl(CArrayFix<TApaAppServiceInfo>* aServiceInfoArray);
private:
	CArrayFix<TApaAppServiceInfo>* iServiceInfoArray;
	};




#endif