diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/coecntss.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/epoc32/include/coecntss.h Tue Mar 16 16:12:26 2010 +0000 @@ -0,0 +1,63 @@ +// 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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#ifndef __COECNTSS_H__ +#define __COECNTSS_H__ + +#include // class CCoeStatic + +/** Holds global settings for all CCoeControls. + +This class is not designed for general use. It is intended to be used +to override certain settings on a system-wide basis at startup. At present, the +only settings it contains are +1. To set whether or not CCoeControls take focus on +creation. By default, a CCoeControl does take focus - this class can be used to +change that. To use it, CCoeControlStaticSettings::SetFocusedByDefaultL() should +be called from a "start-up" DLL to set the default once. Changing the default on +the fly will almost certainly cause instability. +2. To set whether the CC +@publishedPartner This class should only be used by developers of User Interfaces for Symbian OS phones. +@released +*/ +class CCoeControlStaticSettings : public CCoeStatic + { +public: + IMPORT_C static void SetFocusedByDefaultL(TBool aFocusedByDefault); + IMPORT_C static TBool FocusedByDefault(); + IMPORT_C static TBool FocusedByDefault(CCoeEnv* aCoeEnv); + IMPORT_C static void SetParentByDefaultL(TBool aParentByDefault); // deprecated + IMPORT_C static TBool ParentByDefault(); // deprecated + IMPORT_C static const TDesC& SystemTypeface(); + IMPORT_C static void SetSystemTypefaceL(const TDesC& aTypeface); + IMPORT_C static void GetLogicalToPixelFontSizesL(RArray& aLogicalToPixelSizes); + IMPORT_C static void SetLogicalToPixelFontSizesL(const RArray& aLogicalToPixelSizes); + IMPORT_C static void SetOrdinalForAllViewsL(TBool aOrdinalForAllViews); + IMPORT_C static TBool OrdinalForAllViews(); +private: + CCoeControlStaticSettings(); + ~CCoeControlStaticSettings(); + static CCoeControlStaticSettings* Self(CCoeEnv* aCoeEnv=NULL); + + static CCoeControlStaticSettings* NewL(); + void ConstructL(); +private: + TBool iFocusedByDefault; + TBool iOrdinalForAllViews; + TTypeface iTypeface; + RArray iLogicalToPixelSizes; + }; + +#endif // __COECNTSS_H__