dependencies/aknsgcc.h
author kashif.sayed
Fri, 26 Mar 2010 04:17:01 +0530
branchv5backport
changeset 31 a3e98f9c292b
parent 26 bef183758dfa
permissions -rw-r--r--
added missing files user: kashif.sayed added dependencies/AknTaskList.h added dependencies/DRMEvent.h added dependencies/DRMEventObserver.h added dependencies/DRMNotifier.h added dependencies/SchemeDefs.hrh added dependencies/SchemeHandler.h added dependencies/SchemeHandler.inl added dependencies/aiwcommon.hrh added dependencies/aiwdialdata.h added dependencies/drmrightsinfo.h added dependencies/drmutilitytypes.h added dependencies/javaattribute.h added dependencies/javadomainpskeys.h added dependencies/javaregistry.h added dependencies/javaregistryapplicationentry.h added dependencies/javaregistryentry.h added dependencies/javaregistryentrytype.h added dependencies/javaregistrypackageentry.h added dependencies/mjavaattribute.h added dependencies/swi/bld.inf added dependencies/swi/sispackagetrust.h added dependencies/swi/sisregistryentry.h added dependencies/swi/sisregistrylog.h added dependencies/swi/sisregistrysession.h changed .cproject changed dependencies/S3libs/bld.inf changed dependencies/bld.inf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
     1
/*
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
     2
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
     3
* All rights reserved.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
     4
* This component and the accompanying materials are made available
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
     6
* which accompanies this distribution, and is available
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
     8
*
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
     9
* Initial Contributors:
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    11
*
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    12
* Contributors:
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    13
*
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    14
* Description: 
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    15
*
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    16
*/
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    17
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    18
#ifndef AKNSGCC_H
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    19
#define AKNSGCC_H
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    20
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    21
#include <AknCapServerClient.h>
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    22
#include <eikenv.h>
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    23
#include <eikdef.h>
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    24
#include <AknSyncDraw.h>
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    25
#include <AknLayoutConfig.h>
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    26
class CAknAppUiBase;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    27
class CEikStatusPane;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    28
class CEikAppUi;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    29
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    30
class MAknSgcStatusPaneRedrawCoordinator
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    31
	{
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    32
public:
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    33
	virtual void BlockServerStatusPaneRedrawsL() = 0;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    34
	virtual void RedrawServerStatusPane() = 0;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    35
private:
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    36
	IMPORT_C virtual void MAknSgcStatusPaneRedrawCoordinator_Reserved_1();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    37
	IMPORT_C virtual void MAknSgcStatusPaneRedrawCoordinator_Reserved_2();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    38
	};
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    39
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    40
enum TSgcMoveAppToWhere
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    41
	{
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    42
	ESgcMoveAppToForeground,
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    43
	ESgcMoveAppToBackground
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    44
	};
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    45
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    46
class CAknSgcImpl : public CBase
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    47
	{
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    48
public:
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    49
    virtual void MoveApp(TInt aAppWindowGroupId, TSgcMoveAppToWhere aWhere) = 0;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    50
	};
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    51
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    52
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    53
NONSHARABLE_CLASS(CAknSgcClient) : public CCoeStatic
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    54
	{
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    55
public:
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    56
	enum EAppFlags
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    57
		{
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    58
		EFullScreen,
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    59
		ELegacyLayout,
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    60
		EOrientationSpecified,
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    61
		EOrientationLandscape
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    62
		};
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    63
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    64
public:
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    65
 	IMPORT_C static void CreateL();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    66
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    67
	IMPORT_C static void HandleChangeL();	// for change in foreground, partial foreground, full screen, status pane, app embedding
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    68
	IMPORT_C static RAknUiServer* AknSrv();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    69
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    70
	IMPORT_C static void SetStatusPaneRedrawCoordinator(MAknSgcStatusPaneRedrawCoordinator* aSpRedrawCoord);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    71
	IMPORT_C static void BlockServerStatusPaneRedrawsL();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    72
	IMPORT_C static void RedrawServerStatusPane();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    73
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    74
	IMPORT_C static CAknDrawSynchronizer* DrawSynchronizer();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    75
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    76
	IMPORT_C static void PrepareForAppExit();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    77
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    78
	IMPORT_C static void SetSystemFaded(TBool aFade);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    79
	IMPORT_C static TBool IsSystemFaded();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    80
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    81
	IMPORT_C static TPixelsTwipsAndRotation PixelsAndRotation();		// for local app
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    82
	IMPORT_C static TPixelsTwipsAndRotation CalculatePixelsAndRotation(TBool aFullScreen, TBool aLegacyApp, TBool aAppOrientationSpecified, TBool aAppOrientationLandscape);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    83
	IMPORT_C static CAknLayoutConfig::TScreenMode ScreenMode();		// for local app
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    84
	IMPORT_C static CAknLayoutConfig::TScreenMode CalculateScreenMode(TBool aFullScreen, TBool aAppOrientationSpecified, TBool aAppOrientationLandscape);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    85
	IMPORT_C static CAknLayoutConfig::TScreenMode CalculateScreenMode(TBool aFullScreen, TBool aAppOrientationSpecified, TBool aAppOrientationLandscape, TInt aAppScreenMode);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    86
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    87
    IMPORT_C static void SetKeyBlockMode(TAknKeySoundOpcode aMode);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    88
    IMPORT_C static void SetKeyboardRepeatRate(TAknDefaultKeyboardRepeatRate aRate);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    89
    /** 
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    90
    * Returns resource id of currently active statuspane. If current environment does not contain
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    91
    * statuspane, resource id is fecthed from akncapserver. Returns zero on error.
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    92
    */ 
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    93
    IMPORT_C static TInt CurrentStatuspaneResource();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    94
    
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    95
    IMPORT_C static CAknLayoutConfig& LayoutConfig();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    96
    IMPORT_C static const TDesC8& LayoutConfigBuf();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    97
    
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    98
    IMPORT_C static void MoveApp(TInt aAppWindowGroupId, TSgcMoveAppToWhere aWhere);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
    99
	IMPORT_C static void SetImpl(CAknSgcImpl* aImpl);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   100
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   101
	// internal
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   102
    static void RelinquishPriorityToForegroundAppLC(TBool aIsForeground);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   103
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   104
protected:
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   105
	CAknSgcClient();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   106
	~CAknSgcClient();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   107
	void BaseConstructL();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   108
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   109
private:
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   110
	inline static CAknSgcClient* Static();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   111
	virtual void ConstructL();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   112
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   113
	void DoHandleChangeL();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   114
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   115
	CEikStatusPane* StatusPane(CEikAppUi* aAppUi);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   116
	void SetAppUiForegroundL(CAknAppUiBase* aAppUi, TBool aForeground);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   117
	void SetAppUiPartialFgL(CAknAppUiBase* aAppUi, TBool aPartialFg);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   118
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   119
	void SimulateWsEventL(CEikAppUi* aAppUi, TInt aEventId);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   120
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   121
	static void ClearHandlingChangeFlag(TAny* aThis);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   122
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   123
	void DoPrepareForAppExit();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   124
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   125
	void DoSetSystemFaded(TBool aFade);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   126
	TBool DoIsSystemFaded() const;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   127
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   128
	void SetLegacyOrientationAndScreenModeAppUiFlags(TBitFlags& aAppFlags, TInt& aScreenMode, CAknAppUiBase* aAppUi);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   129
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   130
	TPixelsTwipsAndRotation DoCalculatePixelsAndRotation(TBool aFullScreen, TBool aLegacyApp, TBool aAppOrientationSpecified, TBool aAppOrientationLandscape, TInt aAppScreenMode);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   131
	CAknLayoutConfig::TScreenMode DoCalculateScreenMode(TBool aFullScreen, TBool aAppOrientationSpecified, TBool aAppOrientationLandscape, TInt aAppScreenMode);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   132
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   133
    void DoSetKeyBlockMode(TAknKeySoundOpcode aMode);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   134
    void DoSetKeyboardRepeatRate(TAknDefaultKeyboardRepeatRate aRate);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   135
    TInt DoAskCurrentStatuspaneResource();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   136
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   137
    void DoRelinquishPriorityToForegroundAppLC(TBool aIsForeground);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   138
    virtual const TDesC8& DoLayoutConfigBuf();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   139
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   140
	void StartupBlankL();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   141
	static TInt StartupUnblank(TAny* aThis);
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   142
	void DoStartupUnblank();
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   143
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   144
protected:
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   145
	TBitFlags iFlags;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   146
	CAknLayoutConfig* iLayoutConfig;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   147
private:
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   148
	CCoeEnv* iCoeEnv;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   149
	RAknUiServer iAknSrv;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   150
	TInt iSpLayout;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   151
	TInt iSpFlags;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   152
	TBitFlags iAppFlags;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   153
	MAknSgcStatusPaneRedrawCoordinator* iSpRedrawCoord;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   154
	CAknDrawSynchronizer* iDrawSync;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   155
	CIdle *iStartupBlank;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   156
	TInt iAppScreenMode;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   157
	CAknSgcImpl* iImpl;
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   158
	};
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   159
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   160
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   161
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   162
#endif
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   163
bef183758dfa Dependencies for idlefw
kashif.sayed
parents:
diff changeset
   164
// End of File