epoc32/include/uiklaf/private/lafmsg.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
permissions -rw-r--r--
Final list of Symbian^2 public API header files
williamr@2
     1
// Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     2
// All rights reserved.
williamr@2
     3
// This component and the accompanying materials are made available
williamr@2
     4
// 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
williamr@2
     5
// which accompanies this distribution, and is available
williamr@2
     6
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
williamr@2
     7
//
williamr@2
     8
// Initial Contributors:
williamr@2
     9
// Nokia Corporation - initial contribution.
williamr@2
    10
//
williamr@2
    11
// Contributors:
williamr@2
    12
//
williamr@2
    13
// Description:
williamr@2
    14
//
williamr@2
    15
williamr@2
    16
#ifndef __LAFMSG_H__
williamr@2
    17
#define __LAFMSG_H__
williamr@2
    18
williamr@2
    19
#include <e32std.h>
williamr@2
    20
#include <clock.h>
williamr@2
    21
#include <gulalign.h>
williamr@2
    22
#include <coemain.h>
williamr@2
    23
#include <lafmain.h>
williamr@2
    24
williamr@2
    25
williamr@2
    26
class LafMsgWin
williamr@2
    27
/** Provides LAF settings for the system environment's message windows (CEikMsgWin).
williamr@2
    28
williamr@2
    29
@publishedPartner
williamr@2
    30
@released */
williamr@2
    31
	{
williamr@2
    32
public:
williamr@2
    33
	class TDisplayParameters;
williamr@2
    34
public:
williamr@2
    35
	/** Sets the shadow on the blank window which the message is contained in. 
williamr@2
    36
	
williamr@2
    37
	@param aBlankWindow Message window */
williamr@2
    38
	IMPORT_C static void SetUpBlankWindow(RBlankWindow& aBlankWindow);
williamr@2
    39
	/** Completes the intitialisation of the message window.
williamr@2
    40
	
williamr@2
    41
	This function should select a font and call RMessageWindow::ConstructL() for 
williamr@2
    42
	aMessageWin.
williamr@2
    43
	
williamr@2
    44
	@param aMessageWin Message window
williamr@2
    45
	@param aEnv LAF environment functions */
williamr@2
    46
	IMPORT_C static void CompleteMessageWinConstructionL(RMessageWindow& aMessageWin,const MLafEnv& aEnv);
williamr@2
    47
	/** Handles a change to the system resources that may affect how the window is 
williamr@2
    48
	displayed.
williamr@2
    49
	
williamr@2
    50
	The function should update aMessageWin appropriately.
williamr@2
    51
	
williamr@2
    52
	@param aMessageWin Message window
williamr@2
    53
	@param aEnv LAF environment functions */
williamr@2
    54
	IMPORT_C static void HandleResourceChange(RMessageWindow& aMessageWin,const MLafEnv& aEnv);
williamr@2
    55
	/** Formats message text display.
williamr@2
    56
	
williamr@2
    57
	The function should truncate the text in aParams.iTextToDisplay to fit 
williamr@2
    58
	the device display, and set aParms.iMsgWinSize and aParams.iMsgWinPosition 
williamr@2
    59
	appropriately, depending on the corner aParams.iDisplayCorner, and the 
williamr@2
    60
	font for the device.
williamr@2
    61
	
williamr@2
    62
	aParams.iClientRect is provided for devices that wish to set the position 
williamr@2
    63
	relative to the client rect of the application rather than the screen rect.
williamr@2
    64
	
williamr@2
    65
	@param aParams Display parameters
williamr@2
    66
	@param aEnv LAF environment functions */
williamr@2
    67
	IMPORT_C static void ConfigureText(TDisplayParameters& aParams,const MLafEnv& aEnv);
williamr@2
    68
	};
williamr@2
    69
williamr@2
    70
williamr@2
    71
class LafMsgWin::TDisplayParameters
williamr@2
    72
/** Holds message window text display parameters.
williamr@2
    73
williamr@2
    74
@publishedPartner
williamr@2
    75
@released */
williamr@2
    76
	{
williamr@2
    77
public:
williamr@2
    78
	/** Constructor. 
williamr@2
    79
williamr@2
    80
	@param aTextToDispay Message window text. */
williamr@2
    81
	IMPORT_C TDisplayParameters(TDes& aTextToDispay);
williamr@2
    82
public:
williamr@2
    83
	/** Message window position. */
williamr@2
    84
	TPoint iMsgWinPosition;
williamr@2
    85
	/** Message window size. */
williamr@2
    86
	TSize  iMsgWinSize;
williamr@2
    87
	/** Message window text. */
williamr@2
    88
	TDes&  iTextToDisplay;
williamr@2
    89
	/** Message window margins. */
williamr@2
    90
	TMargins iMsgWinBorders;
williamr@2
    91
	/** Message window alignment. */
williamr@2
    92
	TGulAlignment iDisplayCorner;
williamr@2
    93
	/** Associated control environment. */
williamr@2
    94
	CCoeEnv* iEnv;
williamr@2
    95
	/** Message window client screen area. */
williamr@2
    96
	TRect iClientRect;
williamr@2
    97
	};
williamr@2
    98
williamr@2
    99
williamr@2
   100
class LafInfoMsgWin
williamr@2
   101
/** Provides LAF settings for the system environment's information message 
williamr@2
   102
window (CEikonEnv::InfoMsg() etc.).
williamr@2
   103
williamr@2
   104
@publishedPartner
williamr@2
   105
@released */
williamr@2
   106
	{
williamr@2
   107
public:
williamr@2
   108
	/** Gets the default number of microseconds for which a message is displayed. 
williamr@2
   109
	
williamr@2
   110
	@return Default duration */
williamr@2
   111
	IMPORT_C static TTimeIntervalMicroSeconds32 DefaultDuration();
williamr@2
   112
	};
williamr@2
   113
williamr@2
   114
williamr@2
   115
class LafBusyMsgWin
williamr@2
   116
/** Provides LAF settings for the system environment's busy message window 
williamr@2
   117
(CEikonEnv::BusyMsgL()).
williamr@2
   118
williamr@2
   119
@publishedPartner
williamr@2
   120
@released */
williamr@2
   121
	{
williamr@2
   122
public:
williamr@2
   123
	/** Gets the default number of microseconds for which a message is displayed. 
williamr@2
   124
	
williamr@2
   125
	@return Default delay */
williamr@2
   126
	IMPORT_C static TTimeIntervalMicroSeconds32 DefaultInitialDelay();
williamr@2
   127
	};
williamr@2
   128
williamr@2
   129
#endif //__LAFMSG_H__