epoc32/include/mw/aknstaticnotedialog.h
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
     1.1 --- a/epoc32/include/mw/aknstaticnotedialog.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/mw/aknstaticnotedialog.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,170 @@
     1.4 -aknstaticnotedialog.h
     1.5 +/*
     1.6 +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
     1.7 +* All rights reserved.
     1.8 +* This component and the accompanying materials are made available
     1.9 +* 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.10 +* which accompanies this distribution, and is available
    1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.12 +*
    1.13 +* Initial Contributors:
    1.14 +* Nokia Corporation - initial contribution.
    1.15 +*
    1.16 +* Contributors:
    1.17 +*
    1.18 +* Description: 
    1.19 +*
    1.20 +*/
    1.21 +
    1.22 +
    1.23 +#ifndef __AKNSTATICNOTEDIALOG__
    1.24 +#define __AKNSTATICNOTEDIALOG__
    1.25 +
    1.26 +#include <aknnotedialog.h>
    1.27 +#include <AknControl.h>
    1.28 +
    1.29 +class CEikImage;
    1.30 +class CAknStackIndicatorAttributes;
    1.31 +
    1.32 +/**
    1.33 + * Static note stack indicator
    1.34 + */
    1.35 +class CAknStaticNoteStackIndicator : public CAknControl
    1.36 +	{
    1.37 +public:
    1.38 +    /**
    1.39 +     * 2nd stage construction.
    1.40 +     *
    1.41 +    */
    1.42 +	void ConstructL(CCoeControl* aParentNote, TInt aStackDepth);
    1.43 +	
    1.44 +	/**
    1.45 +     * Updates stack depth
    1.46 +     *
    1.47 +    */
    1.48 +	void UpdateDepth(TInt aDepth);
    1.49 +	
    1.50 +	~CAknStaticNoteStackIndicator();
    1.51 +	
    1.52 +    /**
    1.53 +     * From @c CCoeControl.
    1.54 +     * 
    1.55 +     * Handles a change to the control's resources. The types of resources 
    1.56 +     * handled are those which are shared across the environment, e.g. 
    1.57 +     * colours or fonts.
    1.58 +     *
    1.59 +     */
    1.60 +	IMPORT_C void HandleResourceChange(TInt aType);
    1.61 +    
    1.62 +    /**
    1.63 +     * From @c CCoeControl. 
    1.64 +     * Handles pointer events
    1.65 +    */
    1.66 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
    1.67 +    	
    1.68 +private:
    1.69 +	void Draw(const TRect& aRect) const;
    1.70 +	void DoSetExtent();
    1.71 +	
    1.72 +private:
    1.73 +    /**
    1.74 +    * From CAknControl
    1.75 +    */
    1.76 +    IMPORT_C void* ExtensionInterface( TUid aInterface );
    1.77 +
    1.78 +private:
    1.79 +	CAknStackIndicatorAttributes* iAttributes;
    1.80 +	CCoeControl* iParentNote;
    1.81 +	};
    1.82 +
    1.83 +
    1.84 +/**
    1.85 + * Static note dialog
    1.86 + */
    1.87 +class CAknStaticNoteDialog : public CAknNoteDialog
    1.88 +	{
    1.89 +	
    1.90 +public:
    1.91 +    /**
    1.92 +     * Default constructor    
    1.93 +     * Just call CAknNoteDialog constructor
    1.94 +    */
    1.95 +	IMPORT_C CAknStaticNoteDialog();
    1.96 +	
    1.97 +	/**
    1.98 +     * Another class constructor
    1.99 +     *
   1.100 +     * Accept self pointer to CEikDialog* in order to NULL 
   1.101 +     * client pointer when a non modal note is dismissed.
   1.102 +     *
   1.103 +     * @param aSelfPtr Address of the dialog pointer
   1.104 +    */
   1.105 +	IMPORT_C CAknStaticNoteDialog(CEikDialog** aSelfPtr);
   1.106 +	
   1.107 +	IMPORT_C virtual ~CAknStaticNoteDialog();
   1.108 +
   1.109 +    /**
   1.110 +     * Set the number of borders
   1.111 +     *
   1.112 +     * Update the stack indicator depth to the specified number of borders. 
   1.113 +     * 
   1.114 +     * @param aNumber    The number of borders
   1.115 +    */
   1.116 +    IMPORT_C void SetNumberOfBorders(TInt aNumber);
   1.117 +
   1.118 +    /**
   1.119 +     * Handles pointer events
   1.120 +    */
   1.121 +    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);	
   1.122 +
   1.123 +protected:
   1.124 +    /**
   1.125 +     * Part of dialog framework, called after layout has been performed
   1.126 +     *
   1.127 +     * Call PostLayoutDynInitL as implemented in the base, CAknNoteDialog
   1.128 +     * and create a stack indicator
   1.129 +     * 
   1.130 +    */
   1.131 +	IMPORT_C void PostLayoutDynInitL();
   1.132 +	
   1.133 +	/**
   1.134 +     * Part of the dialog framework, process a key event.
   1.135 +     *
   1.136 +     * Call the implementation of OfferKeyEventL provided by
   1.137 +     * CEikDialog, bypassing the direct base, CAknNoteDialog.
   1.138 +    */
   1.139 +	IMPORT_C TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
   1.140 +
   1.141 +protected:
   1.142 +    /**
   1.143 +     * Stack indicator    
   1.144 +     * 
   1.145 +    */
   1.146 +	CAknStaticNoteStackIndicator* iStackIndicator;
   1.147 +	
   1.148 +	/**
   1.149 +     * Indicates stack depth    
   1.150 +     *
   1.151 +    */
   1.152 +	TInt iStackDepth;
   1.153 +	
   1.154 +private:
   1.155 +	TInt iSpare;
   1.156 +	
   1.157 +private:
   1.158 +    /**
   1.159 +    * From CAknControl
   1.160 +    */
   1.161 +    IMPORT_C void* ExtensionInterface( TUid aInterface );
   1.162 +    
   1.163 +private: 
   1.164 +	IMPORT_C virtual void CEikDialog_Reserved_1();
   1.165 +	IMPORT_C virtual void CEikDialog_Reserved_2();
   1.166 +		
   1.167 +private: 
   1.168 +	IMPORT_C virtual void CAknNoteDialog_Reserved();
   1.169 +	
   1.170 +private: // new virtual function.
   1.171 +	IMPORT_C virtual void CAknStaticNoteDialog_Reserved();
   1.172 +	};
   1.173 +
   1.174 +#endif