S60UIExampleInitialContainer.inc
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:1685k
源码类别:
Symbian
开发平台:
C/C++
- class MGulLogicalBorder
- {
- public:
- virtual void Draw(const TGulBorder& aBorder,CGraphicsContext& aGc, const TRect& aRect, const TGulBorder::TColors& aBorderColors) const=0;
- virtual TMargins Margins(const TGulBorder& aBorder) const=0;
- private:
- __declspec(dllexport) virtual void MGulLogicalBorderReserved();
- };
- class GulTls
- {
- public:
- __declspec(dllexport) static void SetLogicalBorder(MGulLogicalBorder* aLogicalBorder);
- __declspec(dllexport) static const MGulLogicalBorder* LogicalBorder();
- };
- #line 12 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulutil.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulftflg.hrh" /* stack depth 6 */
- #line 13 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulutil.h" /* stack depth 5 */
- const TUint KTextUtilClipEndChar=0x2026;
- const TUint KColumnListSeparator='t';
- class CFont;
- class CFbsFont;
- class CWsScreenDevice;
- class TResourceReader;
- class CColorArray;
- class CGraphicsDevice;
- class RWsSession;
- class CColorList;
- template <class T> class CArrayFix;
- class TMargins8
- {
- public :
- TInt8 iLeft;
- TInt8 iRight;
- TInt8 iTop;
- TInt8 iBottom;
- public :
- __declspec(dllexport) TMargins8();
- __declspec(dllexport) void SetAllValuesTo(TInt aCommonValue);
- __declspec(dllexport) TRect InnerRect(const TRect& aOuterRect) const;
- __declspec(dllexport) TRect OuterRect(const TRect& aInnerRect) const;
- __declspec(dllexport) TSize SizeDelta() const;
- };
- class DrawUtils
- {
- public:
- __declspec(dllexport) static void DrawText(CGraphicsContext& aGc,const TDesC& aString,const TRect& aBox,TInt aBaseLineOffset,
- CGraphicsContext::TTextAlign aHoriz,TInt aMargin,const CFont* aFont);
- __declspec(dllexport) static void DrawBetweenRects(CGraphicsContext& aGc,const TRect& aOuterRect,const TRect& aInnerRect);
- __declspec(dllexport) static void ClearBetweenRects(CGraphicsContext& aGc,const TRect& aOuterRect,const TRect& aInnerRect);
- };
- class TextUtils
- {
- public:
- __declspec(dllexport) static void ClipToFit(TDes& aBuffer,const CFont& aFont,TInt aMaxWidthInPixels,TChar aAlternativeEnd=KTextUtilClipEndChar);
- __declspec(dllexport) static TInt ColumnText(TPtrC& aColumnText,TInt aColumn,const TDesC* aSourceText,TChar aColumnSeparator=KColumnListSeparator);
- __declspec(dllexport) static void TruncateToNumChars(TDes& aBuffer, TInt numChars);
- };
- class FontUtils
- {
- public:
- __declspec(dllexport) static void GetAvailableFontsL(CGraphicsDevice& aDevice,CDesCArray& aFontNameList,
- TInt aFonts=0x10 );
- __declspec(dllexport) static TInt TypefaceAttributes(CGraphicsDevice& aDevice,const TDesC& aTypefaceName);
- __declspec(dllexport) static TInt GetAvailableHeightsInTwipsL(CGraphicsDevice& aDevice,const TDesC& aTypefaceName,
- CArrayFix<TInt>& aHeightList);
- __declspec(dllexport) static TInt GetAvailableHeightsInTwipsAndPointsL(CGraphicsDevice& aDevice,const TDesC& aTypefaceName,
- CArrayFix<TInt>& aTwipsList,CDesCArray& aPointsList);
- __declspec(dllexport) static TInt PointsFromTwips(TInt aTwips);
- __declspec(dllexport) static TInt TwipsFromPoints(TInt aPoints);
- __declspec(dllexport) static TInt TwipsFromPoints(const TDesC& aPoints);
- __declspec(dllexport) static TInt IndexOfNearestHeight(CArrayFix<TInt>& aTwipsList,TInt aHeight);
- };
- class ResourceUtils
- #line 120
- {
- public:
- __declspec(dllexport) static CFbsFont* CreateNamedScreenFontL(TResourceReader& aResourceReader,CWsScreenDevice& aScreenDevice);
- __declspec(dllexport) static CFbsFont* CreateNamedScreenFontInPixelsL(TResourceReader& aResourceReader,CWsScreenDevice& aScreenDevice);
- __declspec(dllexport) static CFbsFont* CreateScreenFontL(TResourceReader& aResourceReader,CWsScreenDevice& aScreenDevice);
- inline static TInt8 ReadTInt8L(TResourceReader& aReader);
- inline static TInt16 ReadTInt16L(TResourceReader& aReader);
- inline static TInt32 ReadTInt32L(TResourceReader& aReader);
- __declspec(dllexport) static void PopulateColorArrayL(CColorArray& aColors,TResourceReader& aReader);
- private:
- enum TResourceTypeInt { EResourceInt8,EResourceInt16,EResourceInt32 };
- private:
- __declspec(dllexport) static TInt32 ReadResourceIntL(TResourceReader& aReader,TResourceTypeInt aSize);
- };
- class ColorUtils
- {
- public:
- enum TBitmapOrientation
- {
- EBitmapOrientationVertical,
- EBitmapOrientationHorizontal
- };
- public:
- __declspec(dllexport) static TRgb ColorAdjust(TRgb aColor,TInt aPercentage);
- __declspec(dllexport) static void CreateGradientBitmapL(CFbsBitmap& aBitmap,RWsSession& aWs,TInt aBreadth,
- TBitmapOrientation aOrientation,TRgb aStartColor,TRgb aEndColor);
- __declspec(dllexport) static CColorList* CreateSystemColorListL(RFs& aFs);
- __declspec(dllexport) static CColorList* CreateSystemColorListL(RFs& aFs,const CColorList& aColorList);
- __declspec(dllexport) static void UpdateSystemColorListL(RFs& aFs,CColorList& aColorList);
- __declspec(dllexport) static void GetRgbDerivedBorderColors(TGulBorder::TColors& aBorderColors,TRgb aBackgroundColor,TDisplayMode aMode);
- __declspec(dllexport) static TRgb RgbDarkerColor(TRgb aRgb,TDisplayMode aMode);
- __declspec(dllexport) static TRgb RgbMidDarkerColor(TRgb aRgb,TDisplayMode aMode);
- __declspec(dllexport) static TRgb RgbLighterColor(TRgb aRgb,TDisplayMode aMode);
- };
- class TFindWidthOfWidestTextItem
- #line 176
- {
- protected:
- inline TFindWidthOfWidestTextItem() {}
- public:
- __declspec(dllexport) TInt MaximumWidthInPixels(const CFont& aFont) const;
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const=0;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const=0;
- };
- class TFindWidthOfWidestDigit : public TFindWidthOfWidestTextItem
- #line 209
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestDigit();
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- };
- class TFindWidthOfWidestDigitType : public TFindWidthOfWidestTextItem
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestDigitType(TDigitType aDigitType);
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- private:
- TDigitType iDigitType;
- };
- class TFindWidthOfWidestAmPmName : public TFindWidthOfWidestTextItem
- #line 243
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestAmPmName();
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- };
- class TFindWidthOfWidestAbbreviatedDayName : public TFindWidthOfWidestTextItem
- #line 261
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestAbbreviatedDayName();
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- };
- class TFindWidthOfWidestDayName : public TFindWidthOfWidestTextItem
- #line 279
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestDayName();
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- };
- class TFindWidthOfWidestAbbreviatedMonthName : public TFindWidthOfWidestTextItem
- #line 297
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestAbbreviatedMonthName();
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- };
- class TFindWidthOfWidestMonthName : public TFindWidthOfWidestTextItem
- #line 314
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestMonthName();
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- };
- class TFindWidthOfWidestDateSuffix : public TFindWidthOfWidestTextItem
- #line 331
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestDateSuffix();
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- };
- inline TInt8 ResourceUtils::ReadTInt8L(TResourceReader& aReader)
- { return((TInt8)ReadResourceIntL(aReader,EResourceInt8)); }
- inline TInt16 ResourceUtils::ReadTInt16L(TResourceReader& aReader)
- { return((TInt16)ReadResourceIntL(aReader,EResourceInt16)); }
- inline TInt32 ResourceUtils::ReadTInt32L(TResourceReader& aReader)
- { return((TInt32)ReadResourceIntL(aReader,EResourceInt32)); }
- #line 10 "C:\Symbian\9.1\S60_3rd\epoc32\include\coetextdrawer.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\biditext.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\bidi.h" /* stack depth 6 */
- #line 16
- class RWriteStream;
- class RReadStream;
- class TBidirectionalState
- #line 31
- {
- public:
- class TRunInfo
- #line 44
- {
- public:
- TUint iCategory;
- TUint8 iEmbeddingLevel;
- TUint8 iDirection;
- TInt iIndex;
- TInt iStart;
- TInt iLength;
- };
- __declspec(dllexport) TBidirectionalState();
- __declspec(dllexport) void ReorderLine(TRunInfo* aRunInfo,TInt aRuns,TBool aParStart,TBool aParEnd,TBool aParRightToLeft,
- TChar::TBdCategory aNextCategory,TChar::TBdCategory aNextStrongCategory,
- TBool& aVisualEndIsAmbiguous);
- __declspec(dllexport) void ReorderLine(TRunInfo* aRunInfo,TInt aRuns,TBool aParStart,TBool aParEnd,TBool aParRightToLeft,
- TChar::TBdCategory aNextCategory,TChar::TBdCategory aNextStrongCategory);
- __declspec(dllexport) static TInt ReorderText(const TText* aText,TInt aLength,TBool aParRightToLeft,TText*& aNewText);
- __declspec(dllexport) static void ReverseGroups(TText* aStart,TInt aLength);
- __declspec(dllexport) void Reset();
- __declspec(dllexport) TBool IsDefault() const;
- __declspec(dllexport) TBool operator==(const TBidirectionalState& aState) const;
- __declspec(dllexport) void ExternalizeL(RWriteStream& aDest);
- __declspec(dllexport) void InternalizeL(RReadStream& aSource);
- TBool ParRightToLeft() const { return iStack[0].iEmbeddingLevel & 1; }
- private:
- enum TCategory
- {
- ELeftToRight = 1 << TChar::ELeftToRight,
- ELeftToRightEmbedding = 1 << TChar::ELeftToRightEmbedding,
- ELeftToRightOverride = 1 << TChar::ELeftToRightOverride,
- ERightToLeft = 1 << TChar::ERightToLeft,
- ERightToLeftArabic = 1 << TChar::ERightToLeftArabic,
- ERightToLeftEmbedding = 1 << TChar::ERightToLeftEmbedding,
- ERightToLeftOverride = 1 << TChar::ERightToLeftOverride,
- EPopDirectionalFormat = 1 << TChar::EPopDirectionalFormat,
- EEuropeanNumber = 1 << TChar::EEuropeanNumber,
- EEuropeanNumberSeparator = 1 << TChar::EEuropeanNumberSeparator,
- EEuropeanNumberTerminator = 1 << TChar::EEuropeanNumberTerminator,
- EArabicNumber = 1 << TChar::EArabicNumber,
- ECommonNumberSeparator = 1 << TChar::ECommonNumberSeparator,
- ENonSpacingMark = 1 << TChar::ENonSpacingMark,
- EBoundaryNeutral = 1 << TChar::EBoundaryNeutral,
- EParagraphSeparator = 1 << TChar::EParagraphSeparator,
- ESegmentSeparator = 1 << TChar::ESegmentSeparator,
- EWhitespace = 1 << TChar::EWhitespace,
- EOtherNeutral = 1 << TChar::EOtherNeutral,
- EBdControlsGroup = ELeftToRightEmbedding | ERightToLeftEmbedding |
- ELeftToRightOverride | ERightToLeftOverride | EPopDirectionalFormat,
- ELeftToRightGroup = ELeftToRight | EEuropeanNumber | ELeftToRightOverride | ELeftToRightEmbedding,
- ERightToLeftGroup = ERightToLeft | EArabicNumber | ERightToLeftArabic | ERightToLeftOverride |
- ERightToLeftEmbedding,
- EStrongGroup = ELeftToRightEmbedding | ERightToLeftEmbedding
- | ELeftToRightOverride | ERightToLeftOverride
- | ELeftToRight | ERightToLeft | ERightToLeftArabic,
- ENoCategory = 0
- };
- enum
- {
- EMaxExplicitLevel = 61,
- EMaxLevel = 63,
- EMaxStackLevels = 62
- };
- enum TOverrideState
- {
- ENoOverrideState = 0,
- ELeftToRightOverrideState = ELeftToRightOverride,
- ERightToLeftOverrideState = ERightToLeftOverride
- };
- class TStackItem
- {
- public:
- TUint8 iEmbeddingLevel;
- TOverrideState iOverrideState;
- TCategory iStartCategory;
- };
- public:
- class TReorderContext
- {
- public:
- void SetNextCategory(TChar::TBdCategory aCat);
- void SetNextStrongCategory(TChar::TBdCategory aCat);
- public:
- TCategory iNextCategory;
- TCategory iNextStrongCategory;
- TRunInfo* iRunInfo;
- TInt iRuns;
- TUint32 iCategories;
- TCategory iLastStrongCategory;
- };
- public:
- static TInt GenerateBdRunArray(const TText* aText, TInt aLength,
- TBidirectionalState::TRunInfo* aRun, TInt aMaxRuns);
- private:
- const TStackItem& State() const { return iStack[iStackLevel]; }
- TCategory Push(TCategory aStartCategory);
- TCategory Pop();
- public:
- TBidirectionalState(TChar::TBdCategory aPrevCat,
- TChar::TBdCategory aPrevStrongCat, TBool aParRightToLeft);
- void HandleBdControls(TReorderContext& aContext);
- void ResolveWeakTypesW1W2W3(TReorderContext& aContext);
- void ResolveWeakTypesW4W5W6(TReorderContext& aContext);
- void ResolveWeakTypesW7(TReorderContext& aContext);
- void ResolveNeutralTypes(TReorderContext& aContext);
- void ResolveImplicitLevels(TReorderContext& aContext);
- void PrepareForNextLine(const TReorderContext& aContext);
- void ReorderRuns(TReorderContext& aContext);
- static TInt CatToNumber(TInt aCat);
- static TCategory CharToBdCat(TChar::TBdCategory aCat);
- static TCategory UintToBdCat(TUint aCat);
- static void DeneutralizeRuns(TRunInfo* aStart, TRunInfo* aEnd,
- TCategory aStartCategory, TCategory aEndCategory);
- private:
- TCategory iPreviousCategory;
- TCategory iPreviousStrongCategory;
- TInt16 iStackLevel;
- TInt8 iPushesBeyond60;
- TInt8 iPushesBeyond61;
- TStackItem iStack[EMaxStackLevels];
- };
- #line 11 "C:\Symbian\9.1\S60_3rd\epoc32\include\biditext.h" /* stack depth 5 */
- enum CGraphicsContext::TTextAlign;
- class MLineBreaker;
- class RRunInfoArray;
- class CBidiTextTls;
- #line 27
- class TBidiText
- {
- public:
- enum TDirectionality
- {
- ELeftToRight = 0,
- ERightToLeft = 1
- };
- enum TPanicCodes
- {
- EPanicRunArrayNull,
- };
- __declspec(dllexport) static TDirectionality ScriptDirectionality(TLanguage aLanguage);
- __declspec(dllexport) static TDirectionality TextDirectionality(
- const TDesC& aText, TBool* aFound = 0);
- protected:
- TBidiText();
- public:
- __declspec(dllexport) static TBidiText* NewL(TInt aReservedMaxLength, TInt aMaxLines);
- __declspec(dllexport) static TBidiText* NewL(const TDesC& aText, TInt aMaxLines);
- __declspec(dllexport) static TBidiText* NewL(const TDesC& aText, TInt aMaxLines,
- TDirectionality aDirectionality);
- __declspec(dllexport) TInt SetText(const TDesC& aText, RRunInfoArray& aRunInfoArray);
- __declspec(dllexport) TInt SetText(const TDesC& aText, TDirectionality aDirectionality, RRunInfoArray& aRunInfoArray);
- __declspec(dllexport) void SetTruncationChar(TChar aTruncateWith);
- __declspec(dllexport) void WrapText(TInt aWrappingWidth, const CFont& aFont,
- const MLineBreaker* aBreaker, TInt aMaxLines);
- __declspec(dllexport) void WrapText(TInt aWrappingWidth, const CFont& aFont,
- const MLineBreaker* aBreaker = 0 );
- __declspec(dllexport) TSize MinimumSize(TInt aWrappingWidth, const CFont& aFont, TInt aLineGap, TInt aMaxLines = -1,
- const MLineBreaker* aBreaker = 0 ) const;
- __declspec(dllexport) TPtrC Text() const;
- __declspec(dllexport) TPtrC DisplayText() const;
- __declspec(dllexport) TInt WrappingWidth() const;
- __declspec(dllexport) TDirectionality Directionality() const;
- __declspec(dllexport) TChar TruncationChar() const;
- __declspec(dllexport) TInt NumberOfLinesInDisplayText() const;
- __declspec(dllexport) TPtrC LineOfDisplayText(TInt aLine, TInt& aWidthInPixels) const;
- __declspec(dllexport) void DrawText(CGraphicsContext& aGc, const TPoint& aLeft) const;
- __declspec(dllexport) void DrawText(CGraphicsContext& aGc,
- const TPoint& aLeft, TInt aBaseLineSpacing,
- CGraphicsContext::TTextAlign aAlignment) const;
- __declspec(dllexport) void DrawText(CGraphicsContext& aGc,
- const TPoint& aLeft, TInt aBaseLineSpacing) const;
- private:
- TInt DoWrapText(TInt aWrappingWidth, const CFont& aFont, const MLineBreaker* aBreaker,
- TInt aMaxLines, TText*& aOutputText, TInt& aNumLines, TInt16* aLineWidthArray) const;
- };
- #line 93
- class RRunInfoArray
- {
- friend class TBidiText;
- public:
- __declspec(dllexport) RRunInfoArray();
- __declspec(dllexport) void OpenL();
- __declspec(dllexport) void Close();
- private:
- TBidirectionalState::TRunInfo* RunArray() const;
- private:
- CBidiTextTls* iTls;
- };
- #line 18 "C:\Symbian\9.1\S60_3rd\epoc32\include\coetextdrawer.h" /* stack depth 4 */
- #line 30
- class CCoeTextDrawerBase;
- class TCoeTextTypeAdaptor;
- #line 51
- class XCoeTextDrawer
- {
- public:
- __declspec(dllexport) XCoeTextDrawer(CCoeTextDrawerBase& aTextDrawer);
- __declspec(dllexport) ~XCoeTextDrawer();
- __declspec(dllexport) void operator=(CCoeTextDrawerBase& aTextDrawer);
- __declspec(dllexport) CCoeTextDrawerBase *operator ->();
- __declspec(dllexport) void DrawText(CGraphicsContext& aGc, const TBidiText& aText, const TRect& aTextRect, const CFont& aFont) const;
- __declspec(dllexport) void DrawDisplayOrderedText(CGraphicsContext& aGc, const TDesC& aText, const TRect& aTextRect, const CFont& aFont) const;
- __declspec(dllexport) TRect ClipRect() const;
- __declspec(dllexport) void SetClipRect(const TRect& aClipRect);
- private:
- XCoeTextDrawer(XCoeTextDrawer& aTextDrawer);
- private:
- CCoeTextDrawerBase* iTextDrawer;
- TRect iClipRect;
- };
- class CCoeTextDrawerBaseExt;
- #line 96
- class CCoeTextDrawerBase : public CBase, public MObjectProvider
- {
- friend class XCoeTextDrawer;
- public:
- __declspec(dllexport) ~CCoeTextDrawerBase();
- __declspec(dllexport) virtual void Reset();
- virtual TRgb TextColor() const = 0;
- virtual void SetTextColor(TRgb aColor) = 0;
- __declspec(dllexport) TGulAlignment Alignment() const;
- __declspec(dllexport) void SetAlignment(const TGulAlignment& aAlignment);
- __declspec(dllexport) TMargins8 Margins() const;
- __declspec(dllexport) void SetMargins(const TMargins8& aMargins);
- __declspec(dllexport) TInt LineGapInPixels() const;
- __declspec(dllexport) void SetLineGapInPixels(TInt aLineGapInPixels);
- __declspec(dllexport) TBool IsReusable() const;
- __declspec(dllexport) void SetReusable(TBool aIsReusable);
- protected:
- __declspec(dllexport) CCoeTextDrawerBase();
- __declspec(dllexport) TInt Construct();
- private:
- virtual void DrawText(CGraphicsContext& aGc, const TCoeTextTypeAdaptor& aText, const CFont& aFont,
- const TRect& aTextRect, const TRect& aClipRect) const = 0;
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved1();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved2();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved3();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved4();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved5();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved6();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved7();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved8();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved9();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved10();
- private:
- TBool iIsReusable;
- TGulAlignment iAlignment;
- TMargins8 iMargins;
- TInt iLineGap;
- CCoeTextDrawerBaseExt* iExtension;
- };
- #line 169
- class TCoeTextTypeAdaptor
- {
- public:
- __declspec(dllexport) TCoeTextTypeAdaptor(const TDesC& aText);
- __declspec(dllexport) TCoeTextTypeAdaptor(const TBidiText& aText);
- __declspec(dllexport) TInt NumberOfLines() const;
- __declspec(dllexport) TPtrC LineOfText(TInt aLineNumber, TInt& aWidthInPixels, const CFont& aFont) const;
- __declspec(dllexport) TBool HasRightToLeftDirectionality() const;
- private:
- enum TTextType
- {
- ENewlineSeparated,
- EBidiText
- };
- const TAny* iText;
- TTextType iTextType;
- };
- #line 196
- class CCoePlainTextDrawer : public CCoeTextDrawerBase
- {
- public:
- enum { ETypeId = 0x1020831A };
- public:
- __declspec(dllexport) static CCoePlainTextDrawer* New(TRgb aTextColor);
- __declspec(dllexport) TRgb TextColor() const;
- __declspec(dllexport) void SetTextColor(TRgb aTextColor);
- protected:
- __declspec(dllexport) virtual TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
- private:
- void DrawText(CGraphicsContext& aGc, const TCoeTextTypeAdaptor& aText, const CFont& aFont,
- const TRect& aTextRect, const TRect& aClipRect) const;
- void Reset();
- CCoePlainTextDrawer(TRgb aTextColor);
- __declspec(dllexport) TInt Construct();
- private:
- TRgb iTextColor;
- };
- #line 34 "C:\Symbian\9.1\S60_3rd\epoc32\include\coemain.h" /* stack depth 3 */
- #line 42
- class CVwsSessionWrapper;
- class MVwsSessionWrapperObserver;
- class CCoeAppUi;
- class CCoeEnv;
- class TResourceReader;
- class RGenericPointerArray;
- enum TActivePriority
- {
- EActivePriorityClockTimer=300,
- EActivePriorityIpcEventsHigh=200,
- EActivePriorityFepLoader=150,
- EActivePriorityWsEvents=100,
- EActivePriorityRedrawEvents=50,
- EActivePriorityDefault=0,
- EActivePriorityLogonA=-10
- };
- class CCoeEnvExtra;
- class CCoeStatic;
- class MCoeObserverOfLoadedFep
- #line 90
- {
- public:
- virtual void HandleChangeInLoadedFep()=0;
- protected:
- __declspec(dllexport) MCoeObserverOfLoadedFep();
- private:
- __declspec(dllexport) virtual void MCoeObserverOfLoadedFep_Reserved_1();
- __declspec(dllexport) virtual void MCoeObserverOfLoadedFep_Reserved_2();
- private:
- TInt iMCoeObserverOfLoadedFep_Reserved1;
- };
- class TCoeInputCapabilities;
- class MCoeFocusObserver
- #line 125
- {
- public:
- virtual void HandleChangeInFocus()=0;
- virtual void HandleDestructionOfFocusedItem()=0;
- protected:
- __declspec(dllexport) MCoeFocusObserver();
- private:
- __declspec(dllexport) virtual void MCoeFocusObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeFocusObserver_Reserved_2();
- private:
- TInt iMCoeFocusObserver_Reserved1;
- };
- class MCoeResourceChangeObserver
- {
- public:
- virtual void HandleResourceChange()=0;
- protected:
- __declspec(dllexport) MCoeResourceChangeObserver();
- private:
- __declspec(dllexport) virtual void MCoeResourceChangeObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeResourceChangeObserver_Reserved_2();
- private:
- TInt iMCoeResourceChangeObserver_Reserved1;
- };
- class MCoeForegroundObserver
- #line 182
- {
- public:
- virtual void HandleGainingForeground()=0;
- virtual void HandleLosingForeground()=0;
- protected:
- __declspec(dllexport) MCoeForegroundObserver();
- private:
- __declspec(dllexport) virtual void MCoeForegroundObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeForegroundObserver_Reserved_2();
- private:
- TInt iMCoeForegroundObserver_Reserved1;
- };
- class MCoeMessageObserver
- #line 214
- {
- public:
- enum TMessageResponse
- {
- EMessageNotHandled,
- EMessageHandled
- };
- public:
- #line 236
- virtual TMessageResponse HandleMessageL(TUint32 aClientHandleOfTargetWindowGroup, TUid aMessageUid, const TDesC8& aMessageParameters)=0;
- protected:
- __declspec(dllexport) MCoeMessageObserver();
- private:
- __declspec(dllexport) virtual void MCoeMessageObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeMessageObserver_Reserved_2();
- private:
- TInt iMCoeMessageObserver_Reserved1();
- };
- class MCoeMessageMonitorObserver
- {
- public:
- virtual void MonitorWsMessage(const TWsEvent& aEvent)=0;
- private:
- __declspec(dllexport) virtual void MCoeMessageMonitorObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeMessageMonitorObserver_Reserved_2();
- };
- class MCoeFepObserver;
- typedef void (*TCoeFepObserverFunction)(MCoeFepObserver& aFepObserver);
- class CCoeFepParameters : public CBase
- {
- public:
- static CCoeFepParameters* NewLC();
- private:
- inline CCoeFepParameters() {}
- };
- class CCoeFep;
- class CCoeScheduler : public CBaActiveScheduler
- {
- public:
- __declspec(dllexport) CCoeScheduler(CCoeEnv* aCoeEnv);
- __declspec(dllexport) virtual void WaitForAnyRequest();
- __declspec(dllexport) virtual void DisplayError(TInt aError) const;
- inline CCoeEnv* CoeEnv() {return iCoeEnv;}
- TBool Flush() const;
- void SetFlush(TBool aFlush);
- private:
- __declspec(dllexport) virtual void Reserved_1();
- __declspec(dllexport) virtual void Reserved_2();
- private:
- CCoeEnv* iCoeEnv;
- TBool iFlush;
- };
- class CCoeFontProvider;
- class CCoeEnv : public CActive
- , public MObjectProvider
- #line 331
- {
- public:
- __declspec(dllexport) ~CCoeEnv();
- __declspec(dllexport) CCoeEnv();
- __declspec(dllexport) virtual void DestroyEnvironment();
- __declspec(dllexport) CCoeAppUi* SetAppUi(CCoeAppUi* aAppUi);
- __declspec(dllexport) void ExecuteD();
- __declspec(dllexport) void RunL();
- __declspec(dllexport) void DoCancel();
- __declspec(dllexport) virtual void HandleError(TInt aError);
- __declspec(dllexport) void ConstructL();
- __declspec(dllexport) void ConstructL(TBool aInitialFocusState);
- __declspec(dllexport) void ConstructL( TBool aInitialFocusState, TInt aDefaultScreenNumber ) ;
- __declspec(dllexport) void ConstructL(TBool aInitialFocusState, TInt aDefaultScreenNumber, TInt aWindowGroupID );
- inline const TWsEvent& LastEvent() const;
- inline CCoeAppUi* AppUi() const;
- inline RFs& FsSession() const;
- inline RWsSession& WsSession() const;
- inline RWindowGroup& RootWin() const;
- inline CWindowGc& SystemGc() const;
- inline const CFont* NormalFont() const;
- inline CWsScreenDevice* ScreenDevice() const;
- inline TBool IsSchedulerRunning() const;
- __declspec(dllexport) CWindowGc* CreateGcL();
- __declspec(dllexport) void Flush(TTimeIntervalMicroSeconds32 aDelay=0);
- __declspec(dllexport) CFbsFont* CreateDeviceFontL(CGraphicsDevice* aDevice,const TFontSpec& aFontSpec);
- __declspec(dllexport) CFbsFont* CreateScreenFontL(const TFontSpec& aFontSpec);
- __declspec(dllexport) void ReleaseScreenFont(CFont* aFont) const;
- __declspec(dllexport) void CreateResourceReaderLC(TResourceReader& aReader,TInt aResourceId) const;
- inline void ReadResource(TDes& aDes,TInt aResourceId) const;
- inline void ReadResourceL(TDes& aDes,TInt aResourceId) const;
- inline HBufC* AllocReadResourceL(TInt aResourceId) const;
- inline HBufC* AllocReadResourceLC(TInt aResourceId) const;
- __declspec(dllexport) TInt AddResourceFileL(const TDesC& aFileName);
- __declspec(dllexport) void DeleteResourceFile(TInt aOffset);
- inline CDesCArrayFlat* ReadDesCArrayResourceL(TInt aResourceId);
- __declspec(dllexport) void LeaveWithErrorText(const TDesC& aMsg,const TDesC* aContextText=0 );
- __declspec(dllexport) void Format128(TDes& aDes,TInt aResourceId,...);
- __declspec(dllexport) void Format256(TDes& aDes,TInt aResourceId,...);
- __declspec(dllexport) static TVersion Version();
- __declspec(dllexport) static CCoeEnv* Static();
- __declspec(dllexport) void SimulateKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
- __declspec(dllexport) TBool IsWservEventPending() const;
- __declspec(dllexport) TBool IsRedrawEventPending() const;
- __declspec(dllexport) void PrepareToExit();
- __declspec(dllexport) void BringOwnerToFront();
- __declspec(dllexport) void ReadResourceAsDes8(TDes8& aDes,TInt aResourceId) const;
- __declspec(dllexport) void ReadResourceAsDes8L(TDes8& aDes,TInt aResourceId) const;
- __declspec(dllexport) HBufC8* AllocReadResourceAsDes8L(TInt aResourceId) const;
- __declspec(dllexport) HBufC8* AllocReadResourceAsDes8LC(TInt aResourceId) const;
- __declspec(dllexport) CDesC8ArrayFlat* ReadDesC8ArrayResourceL(TInt aResourceId);
- __declspec(dllexport) void SuppressNextFlush();
- __declspec(dllexport) void ReadResourceAsDes16(TDes16& aDes,TInt aResourceId) const;
- __declspec(dllexport) void ReadResourceAsDes16L(TDes16& aDes,TInt aResourceId) const;
- __declspec(dllexport) HBufC16* AllocReadResourceAsDes16L(TInt aResourceId) const;
- __declspec(dllexport) HBufC16* AllocReadResourceAsDes16LC(TInt aResourceId) const;
- __declspec(dllexport) CDesC16ArrayFlat* ReadDesC16ArrayResourceL(TInt aResourceId);
- __declspec(dllexport) void AddObserverOfLoadedFepL(MCoeObserverOfLoadedFep& aObserverOfLoadedFep);
- __declspec(dllexport) void RemoveObserverOfLoadedFep(MCoeObserverOfLoadedFep& aObserverOfLoadedFep);
- __declspec(dllexport) void AddFocusObserverL(MCoeFocusObserver& aFocusObserver);
- __declspec(dllexport) void RemoveFocusObserver(MCoeFocusObserver& aFocusObserver);
- __declspec(dllexport) void SyncNotifyFocusObserversOfChangeInFocus();
- void NotifyFocusObserversOfDestructionOfFocusedItem();
- __declspec(dllexport) void AddForegroundObserverL(MCoeForegroundObserver& aForegroundObserver);
- __declspec(dllexport) void RemoveForegroundObserver(MCoeForegroundObserver& aForegroundObserver);
- void NotifyForegroundObserversOfGainingForeground();
- void NotifyForegroundObserversOfLosingForeground();
- __declspec(dllexport) void AddResourceChangeObserverL(MCoeResourceChangeObserver& aResourceChangeObserver);
- __declspec(dllexport) void RemoveResourceChangeObserver(MCoeResourceChangeObserver& aResourceChangeObserver);
- void NotifyResourceObserversOfChangeInResource();
- __declspec(dllexport) void AddMessageObserverL(MCoeMessageObserver& aMessageObserver);
- __declspec(dllexport) void RemoveMessageObserver(MCoeMessageObserver& aMessageObserver);
- __declspec(dllexport) void AddMessageMonitorObserverL(MCoeMessageMonitorObserver& aMessageMonitorObserver);
- __declspec(dllexport) void RemoveMessageMonitorObserver(MCoeMessageMonitorObserver& aMessageMonitorObserver);
- void NotifyMessageMonitorObserversOfEvent(const TWsEvent& aEvent);
- __declspec(dllexport) void AddFepObserverL(MCoeFepObserver& aFepObserver);
- __declspec(dllexport) void RemoveFepObserver(MCoeFepObserver& aFepObserver);
- __declspec(dllexport) void ForEachFepObserverCall(TCoeFepObserverFunction aFepObserverFunction);
- void EnsureCorrectFepIsLoadedL();
- #line 419
- void EnsureSpecifiedFepIsLoadedL(TUid aFepUid);
- __declspec(dllexport) void InstallFepL(TUid aFepUid);
- __declspec(dllexport) void InstallFepL(TUid aFepUid, const TBool aLeave);
- __declspec(dllexport) void AvailableFepsL(RArray<TUid>& aUids, CDesCArray* aDisplayNames);
- __declspec(dllexport) void ExecuteFepSettingsDialogL(TUid aFepUid);
- __declspec(dllexport) CCoeFep* Fep() const;
- __declspec(dllexport) TUid FepUid() const;
- __declspec(dllexport) CWindowGc* SwapSystemGc(CWindowGc* aGc);
- __declspec(dllexport) static CCoeStatic* Static(TUid aUid);
- __declspec(dllexport) CCoeStatic* FindStatic(TUid aUid);
- __declspec(dllexport) void DisableExitChecks(TBool aDisable);
- __declspec(dllexport) void InputCapabilitiesChanged();
- __declspec(dllexport) TBool IsResourceAvailableL(TInt aResourceId) const;
- __declspec(dllexport) CCoeTextDrawerBase& DefaultTextDrawer() const;
- __declspec(dllexport) const CCoeFontProvider& DefaultFontProvider() const;
- public:
- TInt AppStartupInstrumentationEventIdBase();
- public:
- __declspec(dllexport) void GetMessageNotifyingObserversLC(TUint32 aClientHandleOfTargetWindowGroup, TUid& aMessageUid, TPtr8& aMessageParameters, const TWsEvent& aMessageEvent);
- protected:
- __declspec(dllexport) void SetAppStartupInstrumentationEventIdBaseL(TInt aAppStartupInstrumentationEventIdBase);
- __declspec(dllexport) void DestroyEnvironmentStatic();
- __declspec(dllexport) void DestroyEnvironmentEnd();
- private:
- __declspec(dllexport) virtual void Reserved_1();
- __declspec(dllexport) virtual void Reserved_2();
- private:
- __declspec(dllexport) TInt RunError(TInt aError);
- public:
- void ReadEvent();
- CVwsSessionWrapper* InitViewServerSessionL(MVwsSessionWrapperObserver& aObserver);
- void AddStatic(CCoeStatic* aStatic);
- void QueueNotificationToFocusObserversOfChangeInFocus();
- TInt FocusObserverNotificationIdentifier() const;
- TBool FocusObserverNotificationIsStillPending(TInt aFocusObserverNotificationIdentifier) const;
- void RefetchPixelMapping();
- protected:
- __declspec(dllexport) virtual TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
- public:
- __declspec(dllexport) void SetZoomFactor(const TZoomFactor& aZoomFactor);
- __declspec(dllexport) TZoomFactor ZoomFactor() const;
- protected:
- __declspec(dllexport) virtual void DestroyScreen();
- inline TDes& ErrorText();
- inline TDes& ErrorContextText();
- private:
- __declspec(dllexport) virtual void InitSystemFontsL();
- __declspec(dllexport) virtual TInt ResourceFileVersionNumber() const;
- void CreateActiveSchedulerL();
- void ConnectToFileServerL();
- void ConnectToWindowServerL();
- void InitScreenL( TInt aDefaultScreenNumber );
- void InitRootWindowL(TBool aInitialFocusState, TInt aWindowGroupID=0);
- void InitSystemGcL();
- RResourceFile& ResourceFileForId(TInt aResourceId) const;
- void DestroyAllResourceFiles();
- void AddObserverL(TAny* aObserver, RGenericPointerArray& aArray);
- void RemoveObserver(TAny* aObserver, RGenericPointerArray& aArray);
- inline TBool DisableShutdownChecks() const;
- void UpdateStatic(CCoeAppUi* aNewAppUi);
- void SetInitialHandleCount();
- inline TUint InitialHandleCount() const;
- protected:
- CCoeAppUi* iAppUi;
- RFs iFsSession;
- RWsSession iWsSession;
- RWindowGroup iRootWin;
- CWindowGc* iSystemGc;
- const CFont* iNormalFont;
- CWsScreenDevice* iScreen;
- TWsEvent iLastEvent;
- CArrayFix<RResourceFile> * iResourceFileArray;
- private:
- enum TFlags
- {
- ENoShutdownChecks =0x0001,
- EExtraPointerIsErrorCode =0x0002,
- ESchedulerIsRunning =0x0004
- };
- private:
- TDes* iErrorText;
- TDes* iErrorContextText;
- CCoeEnvExtra* iExtra;
- CTrapCleanup* iCleanup;
- TUint iEnvFlags;
- };
- class CCoeStatic : public CBase
- #line 524
- {
- public:
- enum TScope
- {
- EThread,
- EApp,
- };
- enum {EDefaultDestructionPriority=100};
- public:
- __declspec(dllexport) ~CCoeStatic();
- protected:
- __declspec(dllexport) CCoeStatic();
- __declspec(dllexport) CCoeStatic(TUid aUid,TScope=EThread);
- __declspec(dllexport) CCoeStatic(TUid aUid,TInt aDestructionPriority,TScope aScope=EThread);
- private:
- __declspec(dllexport) virtual void CCoeStatic_Reserved1();
- __declspec(dllexport) virtual void CCoeStatic_Reserved2();
- private:
- void DoConstruction(TUid aUid,TInt aDestructionPriority,TScope aScope);
- void SetCsAppUi(CCoeAppUi* aAppUi);
- CCoeAppUi* CsAppUi() const;
- TScope CsScope() const;
- inline TInt DestructionPriority() const {return iCsLink.iPriority;}
- private:
- TPriQueLink iCsLink;
- TUid iCsUid;
- TUint iCsAppUiAndScope;
- TInt iCCoeStatic_Reserved1;
- private:
- friend class CCoeEnv;
- friend class CCoeEnvExtra;
- };
- inline const TWsEvent& CCoeEnv::LastEvent() const
- { return(iLastEvent); }
- inline CCoeAppUi* CCoeEnv::AppUi() const
- { return(iAppUi); }
- inline RFs& CCoeEnv::FsSession() const
- { return((RFs&)iFsSession); }
- inline RWsSession& CCoeEnv::WsSession() const
- { return((RWsSession&)iWsSession); }
- inline RWindowGroup& CCoeEnv::RootWin() const
- { return((RWindowGroup&)iRootWin); }
- inline CWindowGc& CCoeEnv::SystemGc() const
- { return((CWindowGc&)*iSystemGc); }
- inline const CFont* CCoeEnv::NormalFont() const
- { return(iNormalFont); }
- inline CWsScreenDevice* CCoeEnv::ScreenDevice() const
- { return(iScreen); }
- inline TDes& CCoeEnv::ErrorText()
- { return *iErrorText; }
- inline TDes& CCoeEnv::ErrorContextText()
- { return *iErrorContextText; }
- inline void CCoeEnv::ReadResource(TDes& aDes,TInt aResourceId) const
- #line 657
- { ReadResourceAsDes16(aDes,aResourceId); }
- inline void CCoeEnv::ReadResourceL(TDes& aDes,TInt aResourceId) const
- #line 668
- { ReadResourceAsDes16L(aDes,aResourceId); }
- inline HBufC* CCoeEnv::AllocReadResourceL(TInt aResourceId) const
- #line 679
- { return AllocReadResourceAsDes16L(aResourceId); }
- inline HBufC* CCoeEnv::AllocReadResourceLC(TInt aResourceId) const
- #line 691
- { return AllocReadResourceAsDes16LC(aResourceId); }
- inline CDesCArrayFlat* CCoeEnv::ReadDesCArrayResourceL(TInt aResourceId)
- { return ReadDesC16ArrayResourceL(aResourceId); }
- #line 727
- inline TBool CCoeEnv::IsSchedulerRunning() const
- {return iEnvFlags&ESchedulerIsRunning;}
- #line 46 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecntrl.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecontrolarray.h" /* stack depth 3 */
- #line 12
- class CCoeControl;
- const TInt KCoeNoControlId = KErrNotFound;
- class TCoeControlWithId
- {
- public:
- TCoeControlWithId(TInt aControlId, CCoeControl* aControl = 0 );
- public:
- CCoeControl* iControl;
- TInt iId;
- };
- #line 46
- class CCoeControlArray : public CBase
- {
- public:
- class TCursor
- {
- public:
- template<typename T> T* Control();
- template<typename T> const T* Control() const;
- __declspec(dllexport) TBool Prev();
- __declspec(dllexport) TBool Next();
- __declspec(dllexport) TBool IsValid() const;
- __declspec(dllexport) TBool operator==(const TCursor& aCursor) const;
- __declspec(dllexport) TBool operator!=(const TCursor& aCursor) const;
- public:
- TCursor(const CCoeControlArray& aArray, TInt aIndex);
- TInt Index() const;
- private:
- __declspec(dllexport) CCoeControl* Ctrl() const;
- void UpdateMemento() const;
- void UpdateIndex() const;
- private:
- const CCoeControlArray* iArray;
- mutable TInt iIndex;
- mutable TCoeControlWithId iMemento;
- };
- public:
- __declspec(dllexport) static CCoeControlArray* NewL(CCoeControl& aOwner);
- __declspec(dllexport) ~CCoeControlArray();
- __declspec(dllexport) TInt Count() const;
- __declspec(dllexport) void Reset();
- __declspec(dllexport) void ResetAndDestroy();
- __declspec(dllexport) void SortById();
- __declspec(dllexport) TBool ControlsOwnedExternally() const;
- __declspec(dllexport) void SetControlsOwnedExternally(TBool aOwnedExternally);
- __declspec(dllexport) TBool IsArrayLocked() const;
- __declspec(dllexport) void SetArrayLocked();
- template<typename T> T* ControlById(TInt aControlId);
- template<typename T> const T* ControlById(TInt aControlId) const;
- __declspec(dllexport) TCursor Begin() const;
- __declspec(dllexport) TCursor End() const;
- __declspec(dllexport) TCursor Find(const CCoeControl* aControl) const;
- __declspec(dllexport) TCursor Find(TInt aControlId) const;
- __declspec(dllexport) TCursor AppendLC(CCoeControl* aControl, TInt aControlId = KCoeNoControlId);
- __declspec(dllexport) TCursor InsertAfterLC(TInt aInsertAfterId, CCoeControl* aControl, TInt aControlId = KCoeNoControlId);
- __declspec(dllexport) TCursor InsertLC(TCursor& aInsertAt, CCoeControl* aControl, TInt aControlId = KCoeNoControlId);
- __declspec(dllexport) TInt Remove(const CCoeControl* aControl);
- __declspec(dllexport) CCoeControl* Remove(TCursor aRemoveAt);
- __declspec(dllexport) CCoeControl* RemoveById(TInt aControlId);
- public:
- __declspec(dllexport) TInt Replace(CCoeControl* aOriginalControl, CCoeControl* aNewControl);
- public:
- __declspec(dllexport) TCoeControlWithId At(TInt aIndex);
- __declspec(dllexport) const TCoeControlWithId At(TInt aIndex) const;
- __declspec(dllexport) TInt Id(const CCoeControl& aControl) const;
- __declspec(dllexport) void Sort(TLinearOrder< TCoeControlWithId > aOrder);
- public:
- enum TEvent
- {
- EControlAdded,
- EControlRemoved
- };
- private:
- __declspec(dllexport) CCoeControlArray(CCoeControl& aOwner);
- TInt IndexById(TInt aControlId) const;
- __declspec(dllexport) CCoeControl* CtrlById(TInt aControlId) const;
- private:
- CCoeControl& iOwner;
- TInt iFlags;
- RArray<TCoeControlWithId> iControls;
- };
- template<typename T>
- T* CCoeControlArray::TCursor::Control()
- {
- return static_cast<T*>(Ctrl());
- }
- template<typename T>
- const T* CCoeControlArray::TCursor::Control() const
- {
- return static_cast<T*>(Ctrl());
- }
- template<typename T>
- T* CCoeControlArray::ControlById(TInt aControlId)
- {
- return static_cast<T*>(CtrlById(aControlId));
- }
- template<typename T>
- const T* CCoeControlArray::ControlById(TInt aControlId) const
- {
- return static_cast<T*>(CtrlById(aControlId));
- }
- #line 55 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecntrl.h" /* stack depth 2 */
- class TResourceReader;
- class CCoeEnv;
- class MCoeControlContext;
- class CCoeControlExtension;
- class MCoeLayoutManager;
- class TCoeZoomWithType;
- class CCoeFontProvider;
- class TCoeFont;
- #line 79
- class TCoeColorUse
- {
- public:
- enum TGround
- {
- EFore=0x01,
- EBack=0x02
- };
- enum TAreas
- {
- EContents=0x10,
- EHighlights=0x20,
- ESurrounds=0x40,
- EBorders=0x80
- };
- enum TFocus
- {
- EActive=0x100,
- EDimmed=0x200,
- EShadowed=0x400,
- EPressed=0x800
- };
- enum TState
- {
- ENormal=0x1000,
- ESet=0x2000,
- EChecked=0x4000
- };
- enum TTones
- {
- ENeutral=0x10000,
- ELight=0x20000,
- EMidLight=0x40000,
- EMid=0x80000,
- EDark=0x100000
- };
- public:
- __declspec(dllexport) TCoeColorUse();
- __declspec(dllexport) void SetUse(TInt aUse);
- __declspec(dllexport) void SetLogicalColor(TInt aLogicalColor);
- __declspec(dllexport) TInt LogicalColor() const;
- __declspec(dllexport) TInt Use() const;
- __declspec(dllexport) TBool IsForeground() const;
- __declspec(dllexport) TBool IsBackground() const;
- __declspec(dllexport) TBool IsContents() const;
- __declspec(dllexport) TBool IsHighlights() const;
- __declspec(dllexport) TBool IsSurrounds() const;
- __declspec(dllexport) TBool IsBorders() const;
- __declspec(dllexport) TBool IsActive() const;
- __declspec(dllexport) TBool IsDimmed() const;
- __declspec(dllexport) TBool IsPressed() const;
- __declspec(dllexport) TBool IsNormal() const;
- __declspec(dllexport) TBool IsSet() const;
- private:
- TInt iLogicalColor;
- TInt iUse;
- TInt iTCoeColorUse_Reserved1;
- };
- class CCoeControl;
- class CCoeTextDrawerBase;
- #line 184
- class MCoeControlBackground
- {
- public:
- #line 198
- virtual void Draw(CWindowGc& aGc, const CCoeControl& aControl, const TRect& aRect) const = 0;
- __declspec(dllexport) virtual void GetTextDrawer(CCoeTextDrawerBase*& aTextDrawer, const CCoeControl* aDrawingControl) const;
- protected:
- __declspec(dllexport) MCoeControlBackground();
- private:
- __declspec(dllexport) virtual void MCoeControlBackground_Reserved1();
- __declspec(dllexport) virtual void MCoeControlBackground_Reserved2();
- __declspec(dllexport) virtual void MCoeControlBackground_Reserved3();
- __declspec(dllexport) virtual void MCoeControlBackground_Reserved4();
- __declspec(dllexport) virtual void MCoeControlBackground_Reserved5();
- private:
- TInt iMCoeControlBackground_Reserved1();
- };
- #line 232
- class MCoeControlHitTest
- {
- public:
- #line 244
- virtual TBool HitRegionContains(const TPoint& aPoint, const CCoeControl& aControl) const = 0;
- protected:
- __declspec(dllexport) MCoeControlHitTest();
- private:
- __declspec(dllexport) virtual void MCoeControlHitTest_Reserved1();
- __declspec(dllexport) virtual void MCoeControlHitTest_Reserved2();
- private:
- TInt iMCoeControlHitTest_Reserved1;
- };
- class RCoeExtensionStorage
- {
- public:
- RCoeExtensionStorage();
- void Close();
- TInt& Flags();
- TInt Flags() const;
- const MCoeControlBackground* Background() const;
- void SetBackground(const MCoeControlBackground* aBackground);
- CCoeControl* Parent();
- TInt SetParent(CCoeControl* aParent);
- const MCoeControlHitTest* HitTestControl() const;
- TInt SetHitTestControl(const MCoeControlHitTest* aHitTest);
- TCoeZoomWithType* ZoomWithType() const;
- TInt SetZoomWithType(TCoeZoomWithType* aZoomWithType);
- const CCoeFontProvider* FontProvider() const;
- TInt SetFontProvider(const CCoeFontProvider* aFontProvider);
- void SetExtension(CCoeControlExtension* aExtension);
- CCoeControlExtension* Extension() const;
- private:
- inline TBool IsFlags() const;
- private:
- union
- {
- TInt iFlags;
- CCoeControlExtension* iExtension;
- };
- };
- class CCoeControl : public CBase
- , public MObjectProvider
- {
- public:
- enum TZoomType
- {
- EAbsoluteZoom,
- ERelativeZoom
- };
- __declspec(dllexport) CCoeControl();
- __declspec(dllexport) CCoeControl(CCoeEnv* aCoeEnv);
- __declspec(dllexport) ~CCoeControl();
- __declspec(dllexport) virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
- __declspec(dllexport) virtual void MakeVisible(TBool aVisible);
- __declspec(dllexport) virtual void SetDimmed(TBool aDimmed);
- __declspec(dllexport) virtual void SetContainerWindowL(const CCoeControl& aContainer);
- __declspec(dllexport) void SetContainerWindowL(RWindow& aWindow);
- __declspec(dllexport) void SetContainerWindowL(RBackedUpWindow& aWindow);
- __declspec(dllexport) virtual void ConstructFromResourceL(TResourceReader& aReader);
- __declspec(dllexport) virtual void ActivateL();
- __declspec(dllexport) virtual void PrepareForFocusLossL();
- __declspec(dllexport) virtual void PrepareForFocusGainL();
- __declspec(dllexport) virtual void SetAdjacent(TInt aAdjacent);
- __declspec(dllexport) virtual void SetNeighbor(CCoeControl* aNeighbor);
- __declspec(dllexport) virtual TBool HasBorder() const;
- __declspec(dllexport) virtual TSize MinimumSize();
- __declspec(dllexport) virtual void HandleResourceChange(TInt aType);
- __declspec(dllexport) virtual void GetColorUseListL(CArrayFix<TCoeColorUse>& aColorUseList) const;
- __declspec(dllexport) virtual void GetHelpContext(TCoeHelpContext& aContext) const;
- __declspec(dllexport) virtual TCoeInputCapabilities InputCapabilities() const;
- __declspec(dllexport) TCoeInputCapabilities RecursivelyMergedInputCapabilities() const;
- __declspec(dllexport) void DrawNow() const;
- __declspec(dllexport) void DrawNow(const TRect &aRect) const;
- __declspec(dllexport) void DrawDeferred() const;
- __declspec(dllexport) void SetFocus(TBool aFocus,TDrawNow aDrawNow=ENoDrawNow);
- __declspec(dllexport) void SetExtent(const TPoint& aPosition,const TSize& aSize);
- __declspec(dllexport) void SetSize(const TSize& aSize);
- __declspec(dllexport) TInt SetMaximumWidth(TInt aMaxWidth);
- __declspec(dllexport) void SetPosition(const TPoint& aPosition);
- __declspec(dllexport) void SetRect(const TRect& aRect);
- __declspec(dllexport) void SetExtentToWholeScreen();
- __declspec(dllexport) TBool IsFocused() const;
- __declspec(dllexport) TBool IsVisible() const;
- __declspec(dllexport) TBool IsDimmed() const;
- __declspec(dllexport) RDrawableWindow* DrawableWindow() const;
- __declspec(dllexport) TSize Size() const;
- __declspec(dllexport) TInt MaximumWidth() const;
- __declspec(dllexport) TPoint Position() const;
- __declspec(dllexport) TRect Rect() const;
- __declspec(dllexport) TPoint PositionRelativeToScreen() const;
- __declspec(dllexport) void SetObserver(MCoeControlObserver* aObserver);
- __declspec(dllexport) MCoeControlObserver* Observer() const;
- inline CCoeEnv* ControlEnv() const;
- __declspec(dllexport) TInt Index(const CCoeControl* aControl) const;
- __declspec(dllexport) void SetNonFocusing();
- __declspec(dllexport) void SetFocusing(TBool aFocusing);
- __declspec(dllexport) TBool IsNonFocusing() const;
- __declspec(dllexport) void SetControlContext(MCoeControlContext* aContext);
- __declspec(dllexport) void CopyControlContextFrom(const CCoeControl* aControl);
- __declspec(dllexport) MCoeControlContext* ControlContext() const;
- __declspec(dllexport) TBool OwnsWindow() const;
- __declspec(dllexport) TBool IsBackedUp() const;
- __declspec(dllexport) void SetPointerCapture(TBool aCapture=ETrue);
- __declspec(dllexport) void ClaimPointerGrab(TBool aSendUpEvent=ETrue);
- __declspec(dllexport) void IgnoreEventsUntilNextPointerUp();
- __declspec(dllexport) void SetComponentsToInheritVisibility(TBool aInherit=ETrue);
- __declspec(dllexport) void SetGloballyCapturing(TBool aGlobal);
- __declspec(dllexport) void OverrideColorL(TInt aLogicalColor,TRgb aColor);
- __declspec(dllexport) TBool GetColor(TInt aLogicalColor,TRgb& aColor) const;
- __declspec(dllexport) void SetMopParent(MObjectProvider* aParent);
- __declspec(dllexport) const MCoeControlBackground* Background() const;
- __declspec(dllexport) const MCoeControlBackground* FindBackground() const;
- __declspec(dllexport) virtual TInt SetParent(CCoeControl* aParent);
- __declspec(dllexport) virtual void SetLayoutManagerL(MCoeLayoutManager* aLayout);
- __declspec(dllexport) MCoeLayoutManager* LayoutManager() const;
- __declspec(dllexport) virtual TBool RequestRelayout(const CCoeControl* aChildControl);
- __declspec(dllexport) void SetZoomFactorL(TInt aZoomFactor, TZoomType aZoomType = ERelativeZoom);
- __declspec(dllexport) void SetFontProviderL(const CCoeFontProvider& aFontProvider);
- __declspec(dllexport) TZoomFactor AccumulatedZoom() const;
- __declspec(dllexport) const TCoeZoomWithType* ZoomWithType() const;
- __declspec(dllexport) const CCoeFontProvider& FindFontProvider() const;
- __declspec(dllexport) virtual TInt TextBaselineOffset(const TSize& aSize) const;
- __declspec(dllexport) virtual void SetTextBaselineSpacing(TInt aSpacing);
- public:
- void ProcessPointerEventL(const TPointerEvent& aPointerEvent);
- void ProcessPointerBufferReadyL();
- void RecursivelyMergeInputCapabilities(TCoeInputCapabilities& aInputCapabilities) const;
- void WriteInternalStateNowL(RWriteStream& aWriteStream) const;
- void NotifyFontChange(const CCoeFontProvider* aFontProvider);
- void RemoveFromParent();
- void RefetchPixelMapping();
- public:
- __declspec(dllexport) virtual void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- protected:
- __declspec(dllexport) virtual void HandlePointerBufferReadyL();
- __declspec(dllexport) virtual void FocusChanged(TDrawNow aDrawNow);
- __declspec(dllexport) virtual void SizeChanged();
- __declspec(dllexport) virtual void PositionChanged();
- public:
- __declspec(dllexport) virtual TInt CountComponentControls() const;
- __declspec(dllexport) virtual CCoeControl* ComponentControl(TInt aIndex) const;
- __declspec(dllexport) CWindowGc& SystemGc() const;
- protected:
- __declspec(dllexport) void EnableDragEvents();
- __declspec(dllexport) void HandleRedrawEvent(const TRect& aRect) const;
- __declspec(dllexport) RWindow& Window() const;
- __declspec(dllexport) RBackedUpWindow& BackedUpWindow() const;
- __declspec(dllexport) void CloseWindow();
- __declspec(dllexport) void CreateWindowL();
- __declspec(dllexport) void CreateWindowL(const CCoeControl* aParent);
- __declspec(dllexport) void CreateWindowL(RWindowTreeNode& aParent);
- __declspec(dllexport) void CreateWindowL(RWindowGroup* aParent);
- __declspec(dllexport) void CreateBackedUpWindowL(RWindowTreeNode& aParent);
- __declspec(dllexport) void CreateBackedUpWindowL(RWindowTreeNode& aParent,TDisplayMode aDisplayMode);
- __declspec(dllexport) void SetAllowStrayPointers();
- __declspec(dllexport) void SetCanDrawOutsideRect();
- __declspec(dllexport) void SetBlank();
- __declspec(dllexport) void ReportEventL(MCoeControlObserver::TCoeEvent aEvent);
- __declspec(dllexport) void SetCornerAndSize(TGulAlignment aCorner,const TSize& aSize);
- __declspec(dllexport) void SetSizeWithoutNotification(const TSize& aSize);
- __declspec(dllexport) void ActivateGc() const;
- __declspec(dllexport) void ResetGc() const;
- __declspec(dllexport) void DeactivateGc() const;
- __declspec(dllexport) TBool IsReadyToDraw() const;
- __declspec(dllexport) TBool IsActivated() const;
- __declspec(dllexport) TBool IsBlank() const;
- __declspec(dllexport) TBool IsBeingDestroyed() const;
- __declspec(dllexport) CCoeControl* GrabbingComponent() const;
- __declspec(dllexport) TBool CapturesPointer() const;
- __declspec(dllexport) void HandleComponentControlsResourceChange(TInt aType);
- friend class CCoeControlArray;
- __declspec(dllexport) virtual void HandleControlArrayEventL(CCoeControlArray::TEvent aEvent, const CCoeControlArray* aArray, CCoeControl* aControl, TInt aControlId);
- __declspec(dllexport) virtual void Reserved_CCoeControl_10();
- __declspec(dllexport) virtual void Reserved_CCoeControl_11();
- __declspec(dllexport) virtual void Reserved_CCoeControl_12();
- __declspec(dllexport) virtual void Reserved_CCoeControl_13();
- __declspec(dllexport) const CFont& ScreenFont(const TCoeFont& aFont) const;
- __declspec(dllexport) CCoeTextDrawerBase& TextDrawer(TInt aKey = KErrNotFound) const;
- __declspec(dllexport) void InitComponentArrayL();
- __declspec(dllexport) CCoeControlArray& Components();
- __declspec(dllexport) const CCoeControlArray& Components() const;
- private:
- __declspec(dllexport) virtual void GetTextDrawer(CCoeTextDrawerBase*& aTextDrawer, const CCoeControl* aDrawingControl, TInt aKey) const;
- __declspec(dllexport) virtual void Reserved_CCoeControl_8();
- __declspec(dllexport) virtual void Reserved_CCoeControl_9();
- protected:
- __declspec(dllexport) virtual TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
- private:
- __declspec(dllexport) virtual MObjectProvider* MopNext();
- private:
- friend class CCoeRedrawer;
- __declspec(dllexport) virtual void Draw(const TRect& aRect) const;
- void DrawComponents(const TRect& aRect) const;
- void DrawWindowOwningComponentsNow() const;
- void DrawWindowOwningComponentsNow(const TRect &aRect) const;
- void SetGrabbed(TBool aGrabbed);
- TBool IsGrabbed() const;
- void DoMakeVisible(TBool aVisible);
- void CheckPointerEventPurge() const;
- inline TInt Flags() const;
- inline TInt& Flags();
- void RecursivelyMergeTextDrawers(CCoeTextDrawerBase*& aTextDrawer,
- const CCoeControl* aDrawingControl, TInt aKey) const;
- const CCoeControl* WindowOwningParent() const;
- const CCoeControl* SearchParent(const CCoeControl* aParentToFind) const;
- void DoSetLayoutL(MCoeLayoutManager* aLayoutManager);
- TInt SetZoomWithType(TCoeZoomWithType* aZoomWithType);
- TCoeZoomWithType* GetZoomWithType() const;
- TInt SetFontProvider(const CCoeFontProvider* aFontProvider);
- const CCoeFontProvider* GetFontProvider() const;
- protected:
- __declspec(dllexport) virtual void WriteInternalStateL(RWriteStream& aWriteStream) const;
- public:
- __declspec(dllexport) void SetBackground(const MCoeControlBackground* aBackground);
- __declspec(dllexport) CCoeControl* Parent();
- __declspec(dllexport) const CCoeControl* Parent() const;
- __declspec(dllexport) TInt SetGc(CWindowGc* aGraphicsContext) const;
- __declspec(dllexport) CWindowGc* CCoeControl::GetGc() const;
- __declspec(dllexport) void DrawBackground(const TRect& aRect) const;
- __declspec(dllexport) void DrawForeground(const TRect& aRect) const;
- __declspec(dllexport) TInt SetHitTest(const MCoeControlHitTest* aHitTestControl);
- __declspec(dllexport) const MCoeControlHitTest* HitTest() const;
- private:
- __declspec(dllexport) virtual void Reserved_2();
- public:
- __declspec(dllexport) TInt UniqueHandle() const ;
- __declspec(dllexport) TInt SetUniqueHandle( TInt aUniqueHandle ) ;
- protected:
- CCoeEnv* iCoeEnv;
- MCoeControlContext* iContext;
- TPoint iPosition;
- TSize iSize;
- private:
- RDrawableWindow* iWin;
- MCoeControlObserver* iObserver;
- RCoeExtensionStorage iExt;
- MObjectProvider* iMopParent;
- };
- inline CCoeEnv* CCoeControl::ControlEnv() const
- {return(iCoeEnv);}
- #line 11 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\inc\S60UIExampleInitialContainer.h" /* stack depth 1 */
- class CS60UIExampleModel;
- #line 24
- class CS60UIExampleInitialContainer : public CCoeControl
- {
- public:
- #line 35
- static CS60UIExampleInitialContainer* NewL(const TRect& aRect,
- CS60UIExampleModel& aModel);
- #line 46
- static CS60UIExampleInitialContainer* NewLC(const TRect& aRect,
- CS60UIExampleModel& aModel);
- void ConstructL(const TRect& aRect);
- virtual ~CS60UIExampleInitialContainer();
- public:
- void SizeChanged();
- void HandleResourceChange(TInt aType);
- void Draw( const TRect& aRect ) const;
- private:
- CS60UIExampleInitialContainer(CS60UIExampleModel& aModel);
- private:
- CS60UIExampleModel& iModel;
- CFbsBitmap* iBkgBitmap;
- HBufC* iTitle;
- };
- #line 3 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\src\S60UIExampleInitialContainer.cpp" /* stack depth 0 */
- #line 1 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\inc\S60UIExampleModel.h" /* stack depth 1 */
- #line 18
- class THighScore
- {
- public:
- TInt iScore;
- TBufC<20> iName;
- };
- #line 32
- class CS60UIExampleModel : public CBase
- {
- public:
- static CS60UIExampleModel* CS60UIExampleModel::NewL();
- static CS60UIExampleModel* CS60UIExampleModel::NewLC();
- void ConstructL();
- virtual ~CS60UIExampleModel();
- public:
- TBool IsGameStarted() const { return iGameStarted; }
- TBool IsGamePaused() const { return iGamePaused; }
- void GameStart() { iGameStarted = ETrue; iLevel = 1; iScore = 0; }
- void GameStop() { iGameStarted = EFalse; }
- void GamePause() { iGamePaused = ETrue; }
- void GameContinue() { iGameStarted = ETrue; iGamePaused = EFalse; }
- TInt LevelNumber() { return iLevel; }
- void SetLevelNumber(TInt aLevel) { iLevel = aLevel; }
- TInt Score() { return iScore; }
- void SetScore(TInt aScore) { iScore = aScore; }
- RArray<THighScore> * HighScoreArray() { return &iHighScores; }
- void InsertInHighScoresL(TDesC& aName, TInt aScore);
- private:
- TBool iGameStarted;
- TBool iGamePaused;
- TInt iLevel;
- TInt iScore;
- RArray<THighScore> iHighScores;
- };
- #line 4 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\src\S60UIExampleInitialContainer.cpp" /* stack depth 0 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\akntitle.h" /* stack depth 1 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\AknControl.h" /* stack depth 2 */
- #line 33
- class CAknControl : public CCoeControl
- {
- public:
- __declspec(dllexport) CAknControl();
- __declspec(dllexport) ~CAknControl();
- private:
- __declspec(dllexport) virtual void* ExtensionInterface( TUid aInterface );
- private:
- TInt iSpare[6];
- };
- #line 26 "C:\Symbian\9.1\S60_3rd\epoc32\include\akntitle.h" /* stack depth 1 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeccntx.h" /* stack depth 2 */
- #line 13
- class MCoeControlContext
- #line 30
- {
- public:
- __declspec(dllexport) virtual void ActivateContext(CWindowGc& aGc,RDrawableWindow& aWindow) const;
- __declspec(dllexport) virtual void ResetContext(CWindowGc& aGc) const;
- __declspec(dllexport) virtual void PrepareContext(CWindowGc& aGc) const;
- protected:
- __declspec(dllexport) MCoeControlContext();
- private:
- __declspec(dllexport) virtual void MCoeControlContext_Reserved1();
- __declspec(dllexport) virtual void MCoeControlContext_Reserved2();
- private:
- TInt iMCoeControlContext_Reserved1;
- };
- class CCoeBrushAndPenContext : public CBase, public MCoeControlContext
- {
- public:
- __declspec(dllexport) static CCoeBrushAndPenContext* NewL();
- __declspec(dllexport) void SetBrushStyle(CWindowGc::TBrushStyle aBrushStyle);
- __declspec(dllexport) void SetBrushColor(TRgb aColor);
- __declspec(dllexport) void SetBrushBitmap(const CFbsBitmap& aBitmap);
- __declspec(dllexport) void SetPenColor(TRgb aColor);
- __declspec(dllexport) CWindowGc::TBrushStyle BrushStyle() const;
- __declspec(dllexport) TRgb BrushColor() const;
- __declspec(dllexport) const CFbsBitmap& BrushBitmap() const;
- __declspec(dllexport) TRgb PenColor() const;
- protected:
- __declspec(dllexport) void PrepareContext(CWindowGc& aGc) const;
- private:
- CCoeBrushAndPenContext();
- private:
- CWindowGc::TBrushStyle iBrushStyle;
- TRgb iBrushColor;
- const CFbsBitmap* iBitmap;
- TRgb iPenColor;
- };
- class MCoeControlBrushContext : public MCoeControlContext
- #line 91
- {
- public:
- __declspec(dllexport) MCoeControlBrushContext();
- protected:
- __declspec(dllexport) void PrepareContext(CWindowGc& aGc) const;
- public:
- CWindowGc::TBrushStyle iBrushStyle;
- TRgb iBrushColor;
- const CFbsBitmap* iBitmap;
- private:
- TInt iMCoeControlBrushContext_Reserved1;
- };
- #line 27 "C:\Symbian\9.1\S60_3rd\epoc32\include\akntitle.h" /* stack depth 1 */
- class CEikLabel;
- class CEikImage;
- class CAknTitlePaneExtension;
- class CAknTitlePaneLabel;
- class MAknTitlePaneObserver;
- class CAknTitlePane : public CAknControl, public MCoeControlContext
- {
- public:
- __declspec(dllexport) CAknTitlePane();
- __declspec(dllexport) ~CAknTitlePane();
- __declspec(dllexport) void ConstructL();
- __declspec(dllexport) void ConstructFromResourceL(TResourceReader& aReader);
- #line 68
- __declspec(dllexport) void SetTextL(const TDesC& aText);
- __declspec(dllexport) void SetText(HBufC* aText);
- #line 89
- __declspec(dllexport) void SetTextL(const TDesC& aText, TBool aScroll);
- #line 100
- __declspec(dllexport) void SetText(HBufC* aText, TBool aScroll);
- inline const TDesC* Text() const;
- #line 116
- __declspec(dllexport) void SetPicture(const CFbsBitmap* aBitmap, const CFbsBitmap* aMaskBitmap = 0 );
- __declspec(dllexport) void SetPictureFromFileL(const TDesC& aFileName, TInt aMainId, TInt aMaskId = -1);
- #line 139
- __declspec(dllexport) void SetSmallPicture(const CFbsBitmap* aBitmap, const CFbsBitmap* aMaskBitmap, TBool aVisible);
- __declspec(dllexport) void SetFromResourceL(TResourceReader& aReader);
- __declspec(dllexport) void SetTextToDefaultL();
- public:
- __declspec(dllexport) virtual void PrepareContext(CWindowGc& aGc) const;
- protected:
- __declspec(dllexport) virtual void SizeChanged();
- __declspec(dllexport) virtual void PositionChanged();
- __declspec(dllexport) virtual void HandleResourceChange(TInt aType);
- __declspec(dllexport) virtual TInt CountComponentControls() const;
- __declspec(dllexport) virtual CCoeControl* ComponentControl(TInt aIndex) const;
- public:
- __declspec(dllexport) void HandlePointerEventL( const TPointerEvent& aPointerEvent );
- __declspec(dllexport) void SetTitlePaneObserver( MAknTitlePaneObserver* aObserver);
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- public:
- CEikLabel* TextLabel();
- private:
- void CommonConstructL();
- TUid AppUid();
- TInt FormatTitlePaneLabelL(
- const TInt aOneLineLayoutWidth, const TInt aTwoLineLayoutWidth,
- const CFont* aOneLineFont, const CFont* aTwoLineFont);
- void ReadFromResourceFileL(TResourceReader& aReader);
- private:
- __declspec(dllexport) virtual void Draw(const TRect& aRect) const;
- protected:
- MAknTitlePaneObserver* iTitlePaneObserver;
- private:
- void SizeChangedInNormalStatusPane();
- void SizeChangedInFlatStatusPane();
- void SizeChangedInStaconPane();
- void SizeChangedInWideScreenPane();
- RWindow* StatuspaneContainerWindow() const;
- void DrawTransparencyMaskL(TBool aTransparencyEnabled);
- void SetupTitleLabelEffectL();
- void SetContainerWindowNonFading(TBool aNonFading);
- void SetupStaconPaneScrollEffectL();
- void SetupFlatStatusPaneScrollEffectL();
- void SetupNormalStatusPaneScrollEffectL();
- void SetupFlatStatusPaneFadeEffectL();
- void SetupNoEffectL();
- private:
- HBufC* iTitleText;
- HBufC* iDefaultTitleText;
- CAknTitlePaneLabel* iTitleLabel;
- TBool iImageShown;
- CAknTitlePaneExtension* iExtension;
- };
- inline const TDesC* CAknTitlePane::Text() const
- { return(iTitleText); }
- #line 5 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\src\S60UIExampleInitialContainer.cpp" /* stack depth 0 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikspane.h" /* stack depth 1 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikspmod.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\uikon.hrh" /* stack depth 3 */
- #line 20
- enum TEikAppResourceFileStandardOffset
- {
- ESignatureResourceOffset=1,
- EDefaultNameResourceOffset,
- EAppInfoResourceOffset
- };
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikspmod.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrvc.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrvs.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikappui.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeaui.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\vwsdef.h" /* stack depth 7 */
- #line 12
- class TVwsViewId
- #line 21
- {
- public:
- inline TVwsViewId();
- inline TVwsViewId(const TVwsViewId& aUid);
- inline TVwsViewId(TUid aAppUid,TUid aViewUid);
- inline TBool operator==(const TVwsViewId& aUid) const;
- inline TBool operator!=(const TVwsViewId& aUid) const;
- public:
- TUid iAppUid;
- TUid iViewUid;
- };
- const TInt KErrViewWrongMode=1;
- class TVwsViewIdAndMessage
- {
- public:
- inline TVwsViewIdAndMessage();
- inline TVwsViewIdAndMessage(const TVwsViewId& aId);
- inline TVwsViewIdAndMessage(const TVwsViewId& aId,TUid aCustomMessageId,const TDesC8& aCustomMessage);
- inline TVwsViewIdAndMessage& operator=(const TVwsViewIdAndMessage& aVwsViewIdAndMessage);
- public:
- TVwsViewId iViewId;
- TUid iCustomMessageId;
- TInt iCustomMessageLength;
- TPtrC8 iCustomMessage;
- };
- class TVwsViewEvent
- #line 79
- {
- public:
- enum TVwsViewEventType
- {
- EVwsActivateView,
- EVwsDeactivateView,
- EVwsScreenDeviceChanged,
- EVwsDeactivationNotification,
- EVwsActivationNotification
- };
- public:
- inline TVwsViewEvent();
- inline TVwsViewEvent(TVwsViewEventType aEventType);
- inline TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId);
- inline TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId,const TVwsViewId& aViewTwoId);
- inline TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId,const TVwsViewId& aViewTwoId,TUid aCustomMessageId,TInt aCustomMessageLength);
- public:
- TVwsViewEventType iEventType;
- TVwsViewId iViewOneId;
- TVwsViewId iViewTwoId;
- TUid iCustomMessageId;
- TInt iCustomMessageLength;
- };
- typedef TPckgBuf<TVwsViewIdAndMessage> TVwsViewIdAndMessageBuf;
- typedef TPckgBuf<TVwsViewEvent> TVwsViewEventBuf;
- inline TVwsViewId::TVwsViewId()
- : iAppUid(TUid::Null() ), iViewUid(TUid::Null() ) {}
- inline TVwsViewId::TVwsViewId(const TVwsViewId& aUid)
- : iAppUid(aUid.iAppUid), iViewUid(aUid.iViewUid) {}
- inline TVwsViewId::TVwsViewId(TUid aAppUid,TUid aViewUid)
- : iAppUid(aAppUid), iViewUid(aViewUid) {}
- inline TBool TVwsViewId::operator==(const TVwsViewId& aUid) const
- #line 147
- {
- return (aUid.iAppUid==iAppUid && aUid.iViewUid==iViewUid);
- }
- inline TBool TVwsViewId::operator!=(const TVwsViewId& aUid) const
- #line 160
- {
- return (aUid.iAppUid!=iAppUid || aUid.iViewUid!=iViewUid);
- }
- inline TVwsViewIdAndMessage::TVwsViewIdAndMessage()
- : iViewId(TVwsViewId()), iCustomMessageLength(0)
- {
- iCustomMessageId.iUid=0;
- iCustomMessage.Set(KNullDesC8);
- }
- inline TVwsViewIdAndMessage::TVwsViewIdAndMessage(const TVwsViewId& aId)
- : iViewId(aId), iCustomMessageLength(0)
- {
- iCustomMessageId.iUid=0;
- iCustomMessage.Set(KNullDesC8);
- }
- inline TVwsViewIdAndMessage::TVwsViewIdAndMessage(const TVwsViewId& aId,TUid aCustomMessageId,const TDesC8& aCustomMessage)
- : iViewId(aId), iCustomMessageId(aCustomMessageId)
- {
- iCustomMessageLength=aCustomMessage.Length();
- iCustomMessage.Set(aCustomMessage);
- }
- inline TVwsViewIdAndMessage& TVwsViewIdAndMessage::operator=(const TVwsViewIdAndMessage& aVwsViewIdAndMessage)
- {
- iViewId=aVwsViewIdAndMessage.iViewId;
- iCustomMessageId=aVwsViewIdAndMessage.iCustomMessageId;
- iCustomMessageLength=aVwsViewIdAndMessage.iCustomMessage.Length();
- iCustomMessage.Set(aVwsViewIdAndMessage.iCustomMessage);
- return(*this);
- }
- inline TVwsViewEvent::TVwsViewEvent() {}
- inline TVwsViewEvent::TVwsViewEvent(TVwsViewEventType aEventType)
- : iEventType(aEventType),iViewOneId(),iViewTwoId(),iCustomMessageId(TUid::Null() ),iCustomMessageLength(0) {}
- inline TVwsViewEvent::TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId)
- : iEventType(aEventType),iViewOneId(aViewOneId),iViewTwoId(),iCustomMessageId(TUid::Null() ),iCustomMessageLength(0) {}
- inline TVwsViewEvent::TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId,const TVwsViewId& aViewTwoId)
- : iEventType(aEventType),iViewOneId(aViewOneId),iViewTwoId(aViewTwoId),iCustomMessageId(TUid::Null() ),iCustomMessageLength(0) {}
- inline TVwsViewEvent::TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId,const TVwsViewId& aViewTwoId,TUid aCustomMessageId,TInt aCustomMessageLength)
- : iEventType(aEventType),iViewOneId(aViewOneId),iViewTwoId(aViewTwoId),iCustomMessageId(aCustomMessageId),iCustomMessageLength(aCustomMessageLength) {}
- #line 22 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeaui.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeview.h" /* stack depth 7 */
- #line 12
- class CCoeAppUi;
- class MCoeView
- {
- public:
- virtual TVwsViewId ViewId() const=0;
- private:
- #line 41
- virtual void ViewActivatedL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,const TDesC8& aCustomMessage)=0;
- virtual void ViewDeactivated()=0;
- protected:
- __declspec(dllexport) MCoeView();
- __declspec(dllexport) virtual TVwsViewIdAndMessage ViewScreenDeviceChangedL();
- private:
- __declspec(dllexport) virtual void ViewConstructL();
- protected:
- __declspec(dllexport) virtual TBool ViewScreenModeCompatible(TInt aScreenMode);
- private:
- friend class CCoeViewManager;
- __declspec(dllexport) virtual void PrepareForViewActivation();
- __declspec(dllexport) virtual void MCoeView_Reserved_2();
- __declspec(dllexport) virtual void MCoeView_Reserved_3();
- private:
- TInt iMCoeView_Reserved1;
- };
- class CCoeScreenDeviceChangeDefaultHandler : public CCoeStatic
- #line 79
- {
- public:
- __declspec(dllexport) ~CCoeScreenDeviceChangeDefaultHandler();
- __declspec(dllexport) static CCoeScreenDeviceChangeDefaultHandler* Self();
- protected:
- __declspec(dllexport) CCoeScreenDeviceChangeDefaultHandler();
- __declspec(dllexport) CCoeScreenDeviceChangeDefaultHandler(TInt aDestructionPriority);
- private:
- __declspec(dllexport) virtual void CCoeStatic_Reserved1();
- __declspec(dllexport) virtual void CCoeStatic_Reserved2();
- __declspec(dllexport) virtual void CCoeScreenDeviceChangeDefaultHandler_Reserved1();
- __declspec(dllexport) virtual void CCoeScreenDeviceChangeDefaultHandler_Reserved2();
- public:
- virtual void HandleScreenDeviceChangedL()=0;
- virtual TVwsViewIdAndMessage DefaultViewOnScreenDeviceChanged()=0;
- private:
- TInt iCCoeScreenDeviceChangeDefaultHandler;
- };
- #line 34 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeaui.h" /* stack depth 6 */
- class CCoeEnv;
- class CCoeControl;
- typedef CCoeFep* (*TCoeFepFactoryFunctionL)(CCoeEnv& aConeEnvironment, const TDesC& aFullFileNameOfDll, const CCoeFepParameters& aFepParameters);
- typedef void (*TCoeSynchronouslyExecuteFepSettingsDialogFunctionL)(CCoeEnv& aConeEnvironment, const TDesC& aFullFileNameOfDll);
- #line 67
- enum
- {
- ECoeStackPriorityDefault=0,
- ECoeStackPriorityMenu=10,
- ECoeStackPriorityDialog=50,
- ECoeStackPriorityCba=60,
- ECoeStackPriorityAlert=200,
- ECoeStackPriorityFep=250,
- ECoeStackPriorityEnvironmentFilter=300
- };
- #line 93
- enum
- {
- ECoeStackFlagStandard = 0,
- ECoeStackFlagRefusesAllKeys = 0x01,
- ECoeStackFlagRefusesFocus = 0x02,
- ECoeStackFlagOwnershipTransfered= 0x04,
- ECoeStackFlagSharable = 0x08
- };
- class CCoeControlStack;
- class CCoeViewManager;
- class MCoeViewDeactivationObserver;
- class MCoeViewActivationObserver;
- class MCoeViewObserver;
- #line 128
- class CCoeAppUi : public CBase
- {
- public:
- __declspec(dllexport) CCoeAppUi();
- __declspec(dllexport) ~CCoeAppUi();
- __declspec(dllexport) void ConstructL(CCoeAppUi* aPrevious=0 );
- public:
- __declspec(dllexport) void AddToStackL(CCoeControl* aControl,TInt aPriority=ECoeStackPriorityDefault,TInt aStackingFlags=ECoeStackFlagStandard);
- __declspec(dllexport) void RemoveFromStack(CCoeControl* aControl);
- __declspec(dllexport) void UpdateStackedControlFlags(CCoeControl* aControl,TInt aFlags,TInt aMask);
- __declspec(dllexport) void HandleStackChanged();
- __declspec(dllexport) TBool IsDisplayingMenuOrDialog() const;
- __declspec(dllexport) TBool IsDisplayingDialog() const;
- __declspec(dllexport) TBool IsDisplayingControlBetweenPriorities(TInt aLowerPriority, TInt aHigherPriority) const;
- __declspec(dllexport) CArrayFix<TCoeHelpContext> * AppHelpContextL() const;
- __declspec(dllexport) virtual TCoeInputCapabilities InputCapabilities() const;
- __declspec(dllexport) void HandleStackedControlsResourceChange(TInt aType);
- __declspec(dllexport) void ActivateViewL(const TVwsViewId& aViewId);
- __declspec(dllexport) void ActivateViewL(const TVwsViewId& aViewId,TUid aCustomMessageId,const TDesC8& aCustomMessage);
- __declspec(dllexport) TBool CheckSourceOfViewSwitchL(const TSecurityPolicy& aSecurityPolicy,const char* aDiagnostic=0 ) const;
- __declspec(dllexport) void RegisterViewL(MCoeView& aView);
- __declspec(dllexport) void DeregisterView(const MCoeView& aView);
- __declspec(dllexport) void SetDefaultViewL(const MCoeView& aView);
- __declspec(dllexport) TInt GetDefaultViewId(TVwsViewId& aViewId) const;
- __declspec(dllexport) TInt GetActiveViewId(TVwsViewId& aViewId) const;
- __declspec(dllexport) void AddToStackL(const MCoeView& aView,CCoeControl* aControl,TInt aPriority=ECoeStackPriorityDefault,TInt aStackingFlags=ECoeStackFlagStandard);
- __declspec(dllexport) CCoeControl* TopFocusedControl() const;
- public:
- TBool IsControlOnStack(CCoeControl* aControl) const;
- void SetCurrentControlStackGroupId(TInt aGroupId);
- void NotifyFontChange(const CCoeFontProvider& aFontProvider);
- void RefetchPixelMapping();
- public:
- __declspec(dllexport) void CreateActivateViewEventL(const TVwsViewId& aViewId,TUid aCustomMessageId,const TDesC8& aCustomMessage);
- __declspec(dllexport) void ActivateTopViewL();
- __declspec(dllexport) void DeactivateActiveViewL();
- __declspec(dllexport) void RegisterApplicationViewL(TUid aAppUid);
- __declspec(dllexport) void DeregisterApplicationView();
- __declspec(dllexport) void CheckInitializeViewsL(TUid aAppUid);
- __declspec(dllexport) void SetApplicationViewAsDefaultL();
- __declspec(dllexport) void AddViewDeactivationObserverL(MCoeViewDeactivationObserver* aViewDeactivationObserver);
- __declspec(dllexport) void RemoveViewDeactivationObserver(MCoeViewDeactivationObserver* aViewDeactivationObserver);
- __declspec(dllexport) void NotifyNextDeactivation(const TVwsViewId& aViewId, MCoeViewDeactivationObserver& aViewDeactivationObserver);
- __declspec(dllexport) void NotifyNextDeactivation(MCoeViewDeactivationObserver& aViewDeactivationObserver);
- __declspec(dllexport) void AddViewActivationObserverL(MCoeViewActivationObserver* aViewActivationObserver);
- __declspec(dllexport) void RemoveViewActivationObserver(MCoeViewActivationObserver* aViewActivationObserver);
- __declspec(dllexport) void NotifyNextActivation(const TVwsViewId& aViewId, MCoeViewActivationObserver& aViewActivationObserver);
- __declspec(dllexport) void NotifyNextActivation(MCoeViewActivationObserver& aViewActivationObserver);
- __declspec(dllexport) void AddViewObserverL(MCoeViewObserver* aViewObserver);
- __declspec(dllexport) void RemoveViewObserver(MCoeViewObserver* aViewObserver);
- __declspec(dllexport) void WriteInternalStateOfStackedControlsL(RWriteStream& aWriteStream) const;
- __declspec(dllexport) void SetSystemDefaultViewL(const TVwsViewId& aViewId,TInt aMode);
- __declspec(dllexport) void SetSystemDefaultViewL(const TVwsViewId& aViewId);
- __declspec(dllexport) void GetSystemDefaultViewL(TVwsViewId& aViewId);
- public:
- __declspec(dllexport) void RegisterViewAndAddStackL(MCoeView& aView);
- __declspec(dllexport) void DeregisterViewAndRemoveStack(const MCoeView& aView);
- __declspec(dllexport) void RemoveFromViewStack(const MCoeView& aView,CCoeControl* aControl);
- __declspec(dllexport) void UpdateViewStackedControlFlags(const MCoeView& aView,CCoeControl* aControl,TInt aFlags,TInt aMask);
- __declspec(dllexport) void AddToViewStackL(const MCoeView& aView,CCoeControl* aControl,TInt aPriority=ECoeStackPriorityDefault,TInt aStackingFlags=ECoeStackFlagStandard);
- public:
- __declspec(dllexport) virtual void HandleWsEventL(const TWsEvent& aEvent,CCoeControl* aDestination);
- __declspec(dllexport) virtual void PrepareToExit();
- protected:
- __declspec(dllexport) virtual void HandleScreenDeviceChangedL();
- private:
- __declspec(dllexport) virtual TKeyResponse HandleKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
- __declspec(dllexport) virtual void HandleForegroundEventL(TBool aForeground);
- __declspec(dllexport) virtual void HandleSwitchOnEventL(CCoeControl* aDestination);
- __declspec(dllexport) virtual void HandleSystemEventL(const TWsEvent& aEvent);
- __declspec(dllexport) virtual void HandleApplicationSpecificEventL(TInt aType,const TWsEvent& aEvent);
- __declspec(dllexport) virtual void SetAndDrawFocus(TBool aFocus);
- __declspec(dllexport) virtual CArrayFix<TCoeHelpContext> * HelpContextL() const;
- public:
- __declspec(dllexport) TBool IsViewConstructed(const TVwsViewId& aViewId) const;
- __declspec(dllexport) virtual void CCoeAppUi_Reserved1();
- __declspec(dllexport) virtual void CCoeAppUi_Reserved2();
- private:
- enum TRemoveCondition
- {
- ERemoveUnconditionally,
- ERemoveOnlyIfSharable
- };
- private:
- CCoeControl* TopFocusableControl() const;
- TInt FindPos(CCoeControlStack* aStack,CCoeControl* aControl) const;
- void SetFocusToControl(CCoeControl* aControl,TBool aFocus);
- void DoAddToStackL(CCoeControlStack* aStack,CCoeControl* aControl,TInt aPriority,TInt aStackingFlags);
- void DoAddToStackL(CCoeControlStack* aStack,CCoeControl* aControl,TInt aPriority,TInt aStackingFlags, TInt aGroupId);
- void DoRemoveFromStack(CCoeControlStack* aStack,CCoeControl* aControl,TRemoveCondition aRemoveCondition=ERemoveUnconditionally);
- void DoUpdateStackedControlFlags(CCoeControlStack* aStack,CCoeControl* aControl,TInt aFlags,TInt aMask);
- public:
- void MonitorWsEvent(const TWsEvent& aEvent);
- private:
- class CExtra;
- friend class CExtra;
- friend class CTestDriver;
- protected:
- CCoeEnv* iCoeEnv;
- private:
- CCoeViewManager* iViewManager;
- CCoeControlStack* iStack;
- CExtra* iExtra;
- TInt iCCoeAppUi_Reserved1;
- };
- class MCoeViewDeactivationObserver
- #line 248
- {
- public:
- virtual void HandleViewDeactivation(const TVwsViewId& aViewIdToBeDeactivated,const TVwsViewId& aNewlyActivatedViewId)=0;
- protected:
- __declspec(dllexport) MCoeViewDeactivationObserver();
- private:
- __declspec(dllexport) virtual void MCoeViewDeactivationObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeViewDeactivationObserver_Reserved_2();
- private:
- TInt iMCoeViewDeactivationObserver_Reserved1;
- };
- class MCoeViewActivationObserver
- {
- public:
- virtual void HandleViewActivation(const TVwsViewId& aNewlyActivatedViewId,const TVwsViewId& aViewIdToBeDeactivated)=0;
- protected:
- __declspec(dllexport) MCoeViewActivationObserver();
- private:
- __declspec(dllexport) virtual void MCoeViewActivationObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeViewActivationObserver_Reserved_2();
- private:
- TInt iMCoeViewActivationObserver_Reserved1;
- };
- class MCoeViewObserver
- {
- public:
- virtual void HandleViewEventL(const TVwsViewEvent& aEvent)=0;
- protected:
- __declspec(dllexport) MCoeViewObserver();
- private:
- __declspec(dllexport) virtual void MCoeViewObserver_Reserved1();
- __declspec(dllexport) virtual void MCoeViewObserver_Reserved2();
- private:
- TInt iMCoeViewObserver_Reserved1;
- };
- #line 9 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikappui.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikmobs.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikcmobs.h" /* stack depth 7 */
- #line 11
- class CCoeControl;
- class MEikCommandObserver
- #line 24
- {
- public:
- virtual void ProcessCommandL(TInt aCommandId)=0;
- #line 44
- __declspec(dllexport) virtual CCoeControl* CreateCustomCommandControlL(TInt aControlType);
- protected:
- __declspec(dllexport) MEikCommandObserver();
- private:
- __declspec(dllexport) virtual void MEikCommandObserver_Reserved1();
- __declspec(dllexport) virtual void MEikCommandObserver_Reserved2();
- private:
- TInt iMEikCommandObserver_Reserved1;
- };
- #line 9 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikmobs.h" /* stack depth 6 */
- class CCoeControl;
- class CEikMenuPane;
- class CEikMenuBar;
- class CEikHotKeyTable;
- class TPoint;
- class MEikMenuObserver : public MEikCommandObserver
- #line 29
- {
- public:
- enum TMenuType
- {
- EMenuPane,
- EMenuBar
- };
- public:
- __declspec(dllexport) virtual void HandleAttemptDimmedSelectionL(TInt aCommandId);
- __declspec(dllexport) virtual TBool CheckHotKeyNotDimmedL(TInt aCommandId);
- __declspec(dllexport) virtual void RestoreMenuL(CCoeControl* aMenuControl,TInt aResourceId,TMenuType aType);
- __declspec(dllexport) virtual void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
- __declspec(dllexport) virtual void DynInitMenuBarL(TInt aResourceId,CEikMenuBar* aMenuBar);
- __declspec(dllexport) virtual void HandleSideBarMenuL(TInt aResourceId,const TPoint& aPos,TInt aModifiers,const CEikHotKeyTable* aTable);
- __declspec(dllexport) virtual void OfferKeyToAppL(const TKeyEvent& aKeyEvent,TEventCode aType);
- #line 56
- virtual void SetEmphasis(CCoeControl* aMenuControl,TBool aEmphasis)=0;
- public:
- __declspec(dllexport) virtual CCoeControl* CreateCustomCommandControlL(TInt aControlType);
- protected:
- __declspec(dllexport) MEikMenuObserver();
- private:
- __declspec(dllexport) virtual void Reserved_1_MenuObserver();
- __declspec(dllexport) virtual void Reserved_2_MenuObserver();
- __declspec(dllexport) virtual void MEikCommandObserver_Reserved1();
- __declspec(dllexport) virtual void MEikCommandObserver_Reserved2();
- private:
- TInt iMEikMenuObserver_Reserved1;
- };
- class MEikAutoMenuObserver : public MEikMenuObserver
- #line 80
- {
- public:
- virtual TKeyResponse OfferHotKeyL(const TKeyEvent& aKeyEvent,TEventCode aType)=0;
- public:
- __declspec(dllexport) void SetEmphasis(CCoeControl* aMenuControl,TBool aEmphasis);
- public:
- __declspec(dllexport) virtual void HandleAttemptDimmedSelectionL(TInt aCommandId);
- __declspec(dllexport) virtual TBool CheckHotKeyNotDimmedL(TInt aCommandId);
- __declspec(dllexport) virtual void RestoreMenuL(CCoeControl* aMenuControl,TInt aResourceId,TMenuType aType);
- __declspec(dllexport) virtual void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
- __declspec(dllexport) virtual void DynInitMenuBarL(TInt aResourceId,CEikMenuBar* aMenuBar);
- __declspec(dllexport) virtual void HandleSideBarMenuL(TInt aResourceId,const TPoint& aPos,TInt aModifiers,const CEikHotKeyTable* aTable);
- __declspec(dllexport) virtual void OfferKeyToAppL(const TKeyEvent& aKeyEvent,TEventCode aType);
- __declspec(dllexport) virtual CCoeControl* CreateCustomCommandControlL(TInt aControlType);
- protected:
- __declspec(dllexport) MEikAutoMenuObserver();
- private:
- __declspec(dllexport) virtual void Reserved_1_MenuObserver();
- __declspec(dllexport) virtual void Reserved_2_MenuObserver();
- __declspec(dllexport) virtual void MEikCommandObserver_Reserved1();
- __declspec(dllexport) virtual void MEikCommandObserver_Reserved2();
- private:
- TInt iMEikAutoMenuObserver_Reserved1;
- };
- #line 11 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikappui.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apadef.h" /* stack depth 6 */
- #line 18
- const TUint KApaCommandLetterOpen='O';
- const TUint KApaCommandLetterCreate='C';
- const TUint KApaCommandLetterRun='R';
- const TUint KApaCommandLetterBackground='B';
- const TUint KApaCommandLetterViewActivate='V';
- const TUint KApaCommandLetterRunWithoutViews='W';
- enum TApaCommand
- {
- EApaCommandOpen,
- EApaCommandCreate,
- EApaCommandRun,
- EApaCommandBackground,
- EApaCommandViewActivate,
- EApaCommandRunWithoutViews
- };
- const TInt KApaMaxAppCaption=0x100;
- #line 82
- typedef TBuf<KApaMaxAppCaption> TApaAppCaption;
- const TInt KApaMaxCommandLine=0x100;
- typedef TBuf<KApaMaxCommandLine> TApaCommandLine;
- const TInt KApaMaxAppFileName=0x10;
- typedef TBuf<KApaMaxAppFileName> TApaAppFileName;
- const TInt KApaMaxAppGroupName=0x10;
- #line 118
- typedef TBuf<KApaMaxAppGroupName> TApaAppGroupName;
- const TInt KAppUidValue8 = 0x1000006c;
- const TUid KUidApp8={KAppUidValue8};
- #line 141
- const TInt KAppUidValue16 = 0x100039CE;
- const TUid KUidApp16={KAppUidValue16};
- const TUid KUidAppDllDoc8={268435565};
- const TUid KUidAppDllDoc16={0x10003A12};
- const TUid KUidPictureTypeDoor8={268435537};
- const TUid KUidPictureTypeDoor16={0x10003A33};
- const TUid KUidSecurityStream8={268435661};
- const TUid KUidSecurityStream16={0x10003A40};
- const TUid KUidAppIdentifierStream8={268435593};
- const TUid KUidAppIdentifierStream16={0x10003A34};
- #line 272
- const TUid KUidFileEmbeddedApplicationInterfaceUid={0x101f8c96};
- #line 12 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikappui.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikdef.h" /* stack depth 6 */
- #line 20
- enum TPopupTargetPosType
- {
- EPopupTargetTopLeft,
- EPopupTargetTopRight,
- EPopupTargetBottomLeft,
- EPopupTargetBottomRight
- };
- #line 110
- const static TLitC<sizeof(L"*")/2> KEikDefaultAppBitmapStore={sizeof(L"*")/2-1,L"*"} ;
- const TInt KUidValueEikColorSchemeChangeEvent =0x10006956;
- const TInt KEikCustomColorsArrayValue =0x100057C2;
- const TInt KEikMessageFadeAllWindows =0x100056C2;
- const TInt KEikMessageUnfadeWindows =0x100056C3;
- const TInt KEikMessageColorSchemeChange =KUidValueCoeColorSchemeChangeEvent;
- #line 157
- const TInt KEikMessageZoomChange =KUidValueCoeZoomChangeEvent;
- const TInt KEikMessageFontChange = KUidValueCoeFontChangeEvent;
- const TInt KEikMessageVirtualCursorStateChange =0x10005D0A;
- const TInt KEikMessageCapsLock =0x100048F9;
- const TInt KEikMessagePrepareForSave =0x100069FD;
- const TInt KEikMessageEmbedLevelChange =0x1000A4AA;
- #line 202
- const TInt KEikHasBecomeCurrentAppUiWhileEmbeddedAppUiDeletes = 0x10207F75;
- const TInt KEikNotifyPreCreateEmbeddedL = 0x10207F67;
- const TInt KEikNotifyPostCreateEmbeddedL = 0x10207F65;
- const TInt KEikPostCoeAppUiConstructL = 0x10207F66;
- const TInt KEikResIdQueryDialog =0;
- const TInt KEikResIdInfoDialog =1;
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikappui.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\baerrhan.h" /* stack depth 6 */
- #line 31
- const TInt KUidBaflErrorHandlerValue8=0x10000257;
- const TUid KUidBaflErrorHandler8={KUidBaflErrorHandlerValue8};
- const TInt KUidBaflErrorHandlerValue16=0x10003A13;
- const TUid KUidBaflErrorHandler16={KUidBaflErrorHandlerValue16};
- enum TErrorHandlerResponse
- {
- EErrorNotHandled,
- ENoDisplay,
- EAlertDisplay,
- EInfoDisplay
- };
- class CBaErrorHandler : public CBase
- {
- public:
- virtual TErrorHandlerResponse HandleError(TDes& aErrorText,TDes& aContextText)=0;
- inline static TErrorHandlerResponse CallBack(TInt aErrorNumber,TDes& aErrorText,TDes& aContextText);
- };
- inline TErrorHandlerResponse CBaErrorHandler::CallBack(TInt aErrorNumber,TDes& aErrorText,TDes& aContextText)
- {
- return((CBaErrorHandler*)(aErrorNumber))->HandleError(aErrorText,aContextText);
- }
- #line 15 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikappui.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikaufty.h" /* stack depth 6 */
- #line 17
- class CEikHotKeyTable;
- class CEikMenuBar;
- class CEikMenuPane;
- class CEikCommandButton;
- class CEikToolBar;
- class CEikButtonGroupContainer;
- class CEikAppUi;
- class CEikonEnv;
- class CEikStatusPane;
- class MEikAppUiFactory
- : public MObjectProvider
- {
- public:
- virtual void CreateResourceIndependentFurnitureL(CEikAppUi* aAppUi) =0;
- virtual TRect ClientRect() = 0;
- virtual void ReadAppInfoResourceL(TInt aResourceFileOffset,CEikAppUi* aAppUi) = 0;
- virtual void LaunchPopupMenuL(
- TInt aResourceId,
- const TPoint& aTargetPos,
- TPopupTargetPosType aTargetType,
- const CEikHotKeyTable* aHotKeyTable,
- CEikAppUi* aAppUi) = 0;
- virtual void DoLaunchPopupL(TInt aResourceId,const TPoint& aTargetPos, const CEikHotKeyTable* aHotKeyTable,
- TPopupTargetPosType aTargetType,CEikAppUi* aAppUi) = 0;
- virtual void ClosePopup(CEikAppUi* aAppUi) = 0;
- virtual void StopDisplayingMenuBar() = 0;
- virtual void HandleSideBarMenuL(TInt aResourceId,const TPoint& aPos,
- const CEikHotKeyTable* aHotKeyTable,CEikAppUi* aAppUi) = 0;
- virtual void CreateHotKeyControlL(TInt aResourceId, CEikAppUi* aAppUi) = 0;
- virtual CEikMenuBar* MenuBar() const = 0;
- virtual CEikMenuBar* SwapMenuBar(CEikMenuBar* aMenu) = 0;
- virtual CEikMenuPane* Popup() const = 0;
- virtual CEikButtonGroupContainer* ToolBar() const = 0;
- virtual CEikButtonGroupContainer* SwapButtonGroup(CEikButtonGroupContainer* aNewGroup) = 0;
- virtual CEikToolBar* ToolBand() const = 0;
- virtual CEikToolBar* TitleBand() const = 0;
- virtual CEikStatusPane* StatusPane() const = 0;
- virtual CEikButtonGroupContainer* Cba() const = 0;
- inline CEikToolBar* SwapToolBand(CEikToolBar* aToolBand);
- inline CEikToolBar* SwapTitleBand(CEikToolBar* aTitleBand);
- virtual CEikCommandButton* CreateStandardTabButtonL() const = 0;
- virtual void CreateEmbeddedL(CEikonEnv& aEikonEnv) = 0;
- virtual void DestroyEmbedded(CEikonEnv& aEikonEnv) = 0;
- virtual void HandleResourceChangeL(TInt aType) = 0;
- protected:
- enum TToolBarType
- {
- EBand,
- ETitle
- };
- private:
- virtual CEikToolBar* SwapToolBar(CEikToolBar* aToolBar,TToolBarType aType) = 0;
- };
- inline CEikToolBar* MEikAppUiFactory::SwapToolBand(CEikToolBar* aToolBand)
- {return SwapToolBar(aToolBand,EBand);}
- inline CEikToolBar* MEikAppUiFactory::SwapTitleBand(CEikToolBar* aTitleBand)
- {return SwapToolBar(aTitleBand,ETitle);}
- #line 16 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikappui.h" /* stack depth 5 */
- class CEikDocument;
- class CEikApplication;
- class CEikAppUiExtra;
- class MApaEmbeddedDocObserver;
- struct SExtendedError;
- class CApaCommandLine;
- class CEikAppUi : public CCoeAppUi, public MEikMenuObserver, public MCoeMessageObserver
- , public MObjectProvider
- #line 56
- {
- public:
- __declspec(dllexport) ~CEikAppUi();
- __declspec(dllexport) CEikAppUi();
- public:
- __declspec(dllexport) virtual void ConstructL();
- __declspec(dllexport) virtual void HandleModelChangeL();
- __declspec(dllexport) void LaunchPopupMenuL(TInt aResourceId,const TPoint& aTargetPos,TPopupTargetPosType aTargetType,const CEikHotKeyTable* aHotKeyTable=0 );
- inline CEikAppUi* ContainerAppUi() const;
- __declspec(dllexport) void SetDocument(CEikDocument* aDocument);
- __declspec(dllexport) void SetEmbeddedDocInfo(MApaEmbeddedDocObserver* aObserver,TBool aReadOnly);
- __declspec(dllexport) virtual TBool ProcessCommandParametersL(TApaCommand aCommand,TFileName& aDocumentName,const TDesC8& aTail);
- __declspec(dllexport) virtual TBool ProcessCommandParametersL(CApaCommandLine& aCommandLine);
- __declspec(dllexport) CEikDocument* Document() const;
- __declspec(dllexport) CEikApplication* Application() const;
- __declspec(dllexport) TRect ClientRect() const;
- __declspec(dllexport) virtual TRect ApplicationRect() const;
- __declspec(dllexport) virtual void StopDisplayingMenuBar();
- __declspec(dllexport) TBool FadeWhenInBackground();
- __declspec(dllexport) virtual void SetFadedL(TBool aFaded);
- inline void SetFaded(TBool aFaded);
- public:
- virtual __declspec(dllexport) void ReportResourceChangedToAppL(TInt aType);
- __declspec(dllexport) virtual void HandleCommandL(TInt aCommand);
- __declspec(dllexport) virtual void ProcessMessageL(TUid aUid,const TDesC8& aParams);
- __declspec(dllexport) virtual void OpenFileL(const TDesC& aFileName);
- __declspec(dllexport) virtual void CreateFileL(const TDesC& aFileName);
- __declspec(dllexport) virtual TErrorHandlerResponse HandleError(TInt aError,const SExtendedError& aExtErr,TDes& aErrorText,TDes& aContextText);
- __declspec(dllexport) virtual void HandleResourceChangeL(TInt aType);
- public:
- __declspec(dllexport) void PrepareToExit();
- protected:
- __declspec(dllexport) void BaseConstructL(TInt aAppUiFlags=0);
- __declspec(dllexport) void ReadAppInfoResourceL(TInt aResourceFileOffset=0);
- __declspec(dllexport) void CreateHotKeyControlL(TInt aResourceId);
- __declspec(dllexport) void SetDocChanged();
- __declspec(dllexport) void SaveAnyChangesL();
- __declspec(dllexport) virtual void Exit();
- __declspec(dllexport) void SaveL();
- __declspec(dllexport) void ClosePopup();
- __declspec(dllexport) TBool ProcessCommandParametersL(TApaCommand aCommand,TFileName& aDocumentName);
- protected:
- __declspec(dllexport) void HandleSideBarMenuL(TInt aResourceId,const TPoint& aPos,TInt aModifiers,const CEikHotKeyTable* aTable);
- protected:
- __declspec(dllexport) void HandleApplicationSpecificEventL(TInt aType,const TWsEvent& aEvent);
- __declspec(dllexport) void HandleForegroundEventL(TBool aForeground);
- __declspec(dllexport) void HandleWsEventL(const TWsEvent& aEvent, CCoeControl* aDestination);
- __declspec(dllexport) void HandleSystemEventL(const TWsEvent& aEvent);
- __declspec(dllexport) void HandleScreenDeviceChangedL();
- protected:
- __declspec(dllexport) void ProcessCommandL(TInt aCommand);
- private:
- __declspec(dllexport) void SetEmphasis(CCoeControl* aMenuWindow,TBool aEmphasis);
- protected:
- __declspec(dllexport) MCoeMessageObserver::TMessageResponse HandleMessageL(TUint32 aClientHandleOfTargetWindowGroup, TUid aMessageUid, const TDesC8& aMessageParameters);
- protected:
- __declspec(dllexport) virtual TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
- __declspec(dllexport) virtual MObjectProvider* MopNext();
- private:
- private:
- __declspec(dllexport) virtual TBool ValidFileType(TUid aFileUid) const;
- __declspec(dllexport) virtual void Reserved_3();
- __declspec(dllexport) virtual void Reserved_4();
- public:
- __declspec(dllexport) TLanguage ApplicationLanguageL() const;
- public:
- enum
- {
- EStandardApp = 0x00,
- ENoAppResourceFile = 0x01,
- ENonStandardResourceFile= 0x02,
- ENoScreenFurniture = 0x04,
- ELastReservedEikAppUiFlag = 0x8000
- };
- public:
- __declspec(dllexport) void ReportResourceChangedToAppStackL(CEikAppUi* aTopApp, TInt aEventId);
- private:
- void CreateResourceIndependentFurnitureL();
- TBool ValidFileExistsL(const TDesC& aFileName);
- protected:
- CEikDocument* iDocument;
- CEikAppUi* iContainerAppUi;
- MApaEmbeddedDocObserver* iDoorObserver;
- TBool iEmbeddedAndReadOnly;
- TInt iFlags;
- private:
- enum
- {
- EEmbedded = 0x01
- };
- private:
- CEikAppUiExtra* iAppUiExtra;
- };
- inline CEikAppUi* CEikAppUi::ContainerAppUi() const
- { return iContainerAppUi; }
- #line 10 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrvs.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikenv.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apaflrec.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apaid.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apmstd.h" /* stack depth 8 */
- #line 17
- const TInt KMaxDataTypeLength=256;
- class RReadStream;
- class RWriteStream;
- #line 31
- typedef TInt32 TDataTypePriority;
- const TInt32 KDataTypePriorityUserSpecified=KMaxTInt16;
- #line 46
- const TInt32 KDataTypePrioritySystem = 0xFFF9;
- #line 55
- const TInt32 KDataTypeUnTrustedPriorityThreshold=KMaxTInt16;
- #line 64
- const TInt32 KDataTypePriorityHigh=10000;
- #line 73
- const TInt32 KDataTypePriorityNormal=0;
- #line 82
- const TInt32 KDataTypePriorityLow=-10000;
- #line 91
- const TInt32 KDataTypePriorityLastResort=-20000;
- const TInt32 KDataTypePriorityNotSupported=KMinTInt16;
- class TDataType
- #line 110
- {
- public:
- __declspec(dllexport) TDataType();
- __declspec(dllexport) TDataType(const TDataType& aDataType);
- __declspec(dllexport) TDataType(const TDesC8& aDataType);
- __declspec(dllexport) TDataType(TUid aUid);
- __declspec(dllexport) TInt operator==(const TDataType& aDataType) const;
- __declspec(dllexport) TInt operator!=(const TDataType& aDataType) const;
- __declspec(dllexport) TBool IsNative() const;
- __declspec(dllexport) TBuf<KMaxDataTypeLength> Des() const;
- __declspec(dllexport) TPtrC8 Des8() const;
- __declspec(dllexport) TUid Uid() const;
- __declspec(dllexport) void InternalizeL(RReadStream& aReadStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aWriteStream) const;
- private:
- void ParseDes();
- private:
- TBuf8<KMaxDataTypeLength> iDataType;
- TUid iUid;
- };
- #line 142
- const static TLitC8<sizeof( "X-Epoc-Url/")> KEpocUrlDataTypeHeader={sizeof( "X-Epoc-Url/")-1, "X-Epoc-Url/"} ;
- class TDataTypeWithPriority
- #line 159
- {
- public:
- __declspec(dllexport) TDataTypeWithPriority();
- __declspec(dllexport) TDataTypeWithPriority(const TDataType& aDataType, TDataTypePriority aPriority);
- __declspec(dllexport) void InternalizeL(RReadStream& aReadStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aWriteStream) const;
- public:
- TDataType iDataType;
- TDataTypePriority iPriority;
- };
- #line 16 "C:\Symbian\9.1\S60_3rd\epoc32\include\apaid.h" /* stack depth 7 */
- class TApaAppIdentifier;
- class TApaAppEntry;
- class CApaAppFinder;
- class RReadStream;
- class RWriteStream;
- class RFs;
- class TApaAppIdentifier
- #line 49
- {
- public:
- __declspec(dllexport) TApaAppIdentifier();
- __declspec(dllexport) TApaAppIdentifier(TUid aAppUidType,const TFileName& aDllName);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- public:
- TUid iAppUid;
- TFileName iFullName;
- private:
- TInt iTApaAppIdentifier_Reserved1;
- };
- class TApaAppEntry
- #line 78
- {
- public:
- __declspec(dllexport) TApaAppEntry();
- __declspec(dllexport) TApaAppEntry(const TUidType& aAppUidType,const TFileName& aDllName);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- public:
- TUidType iUidType;
- TFileName iFullName;
- private:
- TInt iTApaAppEntry_Reserved1;
- };
- class TApaAppInfo
- #line 109
- {
- public:
- __declspec(dllexport) TApaAppInfo();
- __declspec(dllexport) TApaAppInfo(TUid aAppUid,const TFileName& aDllName,const TApaAppCaption& aCaption);
- __declspec(dllexport) TApaAppInfo(TUid aAppUid,const TFileName& aDllName,const TApaAppCaption& aCaption,const TApaAppCaption& aShortCaption);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- public:
- TUid iUid;
- TFileName iFullName;
- TApaAppCaption iCaption;
- TApaAppCaption iShortCaption;
- private:
- TInt iTApaAppInfo_Reserved1;
- };
- class TApaAppViewInfo
- #line 146
- {
- public:
- __declspec(dllexport) TApaAppViewInfo();
- __declspec(dllexport) TApaAppViewInfo(TUid aViewUid,const TApaAppCaption& aViewCaption,TInt aScreenMode);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- public:
- TUid iUid;
- TApaAppCaption iViewCaption;
- TInt iScreenMode;
- private:
- TInt iTApaAppViewInfo_Reserved1;
- };
- #line 171
- typedef CArrayFixFlat<TApaAppViewInfo> CApaAppViewArray;
- class TApaAppCapability
- {
- public:
- __declspec(dllexport) static void CopyCapability(TDes8& aDest,const TDesC8& aSource);
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void Internalize7_0L(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- private:
- __declspec(dllexport) void Externalize7_0L(RWriteStream& aStream) const;
- void DoInternalizeL(RReadStream& aStream, TBool& aLaunchInBackground, TApaAppGroupName& aGroupName);
- public:
- enum TEmbeddability {
- ENotEmbeddable=0,
- EEmbeddable=1,
- EEmbeddableOnly=2,
- EEmbeddableUiOrStandAlone=5,
- EEmbeddableUiNotStandAlone=6 };
- enum TCapabilityAttribute
- {
- EBuiltAsDll = 0x00000001,
- EControlPanelItem = 0x00000002,
- ENonNative = 0x00000004
- };
- public:
- TEmbeddability iEmbeddability;
- TBool iSupportsNewFile;
- TBool iAppIsHidden;
- TBool iLaunchInBackground;
- TApaAppGroupName iGroupName;
- TUint iAttributes;
- private:
- enum { EVersion=4 };
- private:
- TInt iTApaAppCapability_Reserved1;
- };
- typedef TPckgBuf<TApaAppCapability> TApaAppCapabilityBuf;
- class TApaEmbeddabilityFilter
- {
- public:
- __declspec(dllexport) TApaEmbeddabilityFilter();
- __declspec(dllexport) void AddEmbeddability(TApaAppCapability::TEmbeddability aEmbeddability);
- __declspec(dllexport) TBool MatchesEmbeddability(TApaAppCapability::TEmbeddability aEmbeddability) const;
- private:
- TUint iEmbeddabilityFlags;
- private:
- TInt iTApaEmbeddabilityFilter_Reserved1;
- };
- class CApaAppFinder : public CBase
- {
- public:
- virtual void FindAllAppsL()=0;
- virtual TBool NextL(TApaAppEntry& aEntry)=0;
- virtual TFileName FindAppL(const TDesC& aFileName,TUid aFileUid)=0;
- #line 282
- virtual TFileName DefaultAppInfoFileName()const=0;
- protected:
- __declspec(dllexport) CApaAppFinder();
- private:
- __declspec(dllexport) virtual void CApaAppFinder_Reserved1();
- __declspec(dllexport) virtual void CApaAppFinder_Reserved2();
- };
- const TUid KOpenServiceUid = { 0x10208DCA };
- #line 310
- class TApaAppServiceInfo
- {
- public:
- TApaAppServiceInfo();
- TApaAppServiceInfo(TUid aUid, CArrayFixFlat<TDataTypeWithPriority> * aDataTypes,
- HBufC8* aOpaqueData);
- void ExternalizeL(RWriteStream& aStream) const;
- void InternalizeL(RReadStream& aStream);
- void Release();
- CArrayFixFlat<TDataTypeWithPriority>& DataTypes();
- __declspec(dllexport) TUid Uid() const;
- __declspec(dllexport) const CArrayFixFlat<TDataTypeWithPriority>& DataTypes() const;
- __declspec(dllexport) const TDesC8& OpaqueData() const;
- private:
- TUid iUid;
- CArrayFixFlat<TDataTypeWithPriority> * iDataTypes;
- HBufC8* iOpaqueData;
- TInt iTApaAppServiceInfo;
- };
- #line 338
- class CApaAppServiceInfoArray : public CBase
- {
- protected:
- CApaAppServiceInfoArray();
- public:
- virtual TArray<TApaAppServiceInfo> Array()=0;
- private:
- __declspec(dllexport) virtual void CApaAppServiceInfoArray_Reserved1();
- __declspec(dllexport) virtual void CApaAppServiceInfoArray_Reserved2();
- private:
- TInt iCApaAppServiceInfoArray_Reserved1;
- };
- #line 13 "C:\Symbian\9.1\S60_3rd\epoc32\include\apaflrec.h" /* stack depth 6 */
- class MApaAppStarter;
- class CApaAppLocator;
- class CApaFileRecognizer;
- class CApaFileRecognizerType;
- class CFileRecognizerExtension;
- class TApaAppEntry;
- class CApaCommandLine;
- class RFs;
- #line 44
- const TInt KFileRecognizerUidValue8=0x1000013E;
- const TUid KUidFileRecognizer8={KFileRecognizerUidValue8};
- const TUid KUidFileRecognizer16={0x10003A37};
- class CApaAppLocator : public CBase
- {
- public:
- virtual TInt GetAppEntryByUid(TApaAppEntry& aAppEntry,TUid aAppUid)=0;
- virtual TInt GetAppCapabilityByUid(TDes8& aCapabilityBuf,TUid aAppUid)=0;
- };
- class CApaFileRecognizer : public CBase
- {
- public:
- __declspec(dllexport) CApaFileRecognizerType* RecognizeFileL(const TDesC& aFullFileName,const TUidType* aUidType=0 );
- __declspec(dllexport) CApaAppLocator* AppLocator() const;
- __declspec(dllexport) ~CApaFileRecognizer();
- protected:
- __declspec(dllexport) CApaFileRecognizer(RFs& aFs);
- __declspec(dllexport) void AddFileRecognizerType(CApaFileRecognizerType* aFileRecognizerType);
- __declspec(dllexport) TInt RemoveFileRecognizerType(const CApaFileRecognizerType* aFileRecognizerType);
- __declspec(dllexport) void SetAppLocator(CApaAppLocator* aAppLocator);
- static inline void SetAppStarter(CApaFileRecognizerType* aRecognizer,MApaAppStarter* aAppStarter);
- __declspec(dllexport) void DestroyRecognizerList();
- protected:
- RFs& iFs;
- CApaAppLocator* iAppLocator;
- private:
- CApaFileRecognizerType *iFileRecognizerList;
- };
- class MApaAppStarter
- {
- public:
- virtual TThreadId StartAppL(const CApaCommandLine& aCommandLine)=0;
- protected:
- __declspec(dllexport) MApaAppStarter();
- private:
- __declspec(dllexport) virtual void MApaAppStarter_Reserved1();
- __declspec(dllexport) virtual void MApaAppStarter_Reserved2();
- private:
- TInt iMApaAppStarter_Reserved1;
- };
- class CApaFileRecognizerType : public CBase
- {
- public:
- enum TRecognizedType {EProgram,EDoc,EOtherFile,ENotRecognized};
- public:
- virtual TThreadId RunL(TApaCommand aCommand,const TDesC* aDocFileName=0 ,const TDesC8* aTailEnd=0 ) const=0;
- inline TUid AppUid()const;
- inline TUid TypeUid()const;
- inline TRecognizedType Type()const;
- __declspec(dllexport) void Capability(TDes8& aCapabilityBuf)const;
- __declspec(dllexport) void Lock();
- __declspec(dllexport) void Unlock();
- protected:
- __declspec(dllexport) CApaFileRecognizerType();
- __declspec(dllexport) ~CApaFileRecognizerType();
- __declspec(dllexport) TThreadId AppRunL(const CApaCommandLine& aCommandLine) const;
- private:
- inline void SetAppStarter(MApaAppStarter* aAppStarter);
- virtual TRecognizedType DoRecognizeFileL(RFs& aFs,TUidType aUidType)=0;
- TRecognizedType RecognizeFileL(RFs& aFs,const TDesC& aFullFileName,TUidType aUidType);
- TBool Locked()const;
- __declspec(dllexport) virtual void Reserved_1();
- public:
- __declspec(dllexport) static CApaFileRecognizerType* CreateFileRecognizerL(TUid aImplUid);
- protected:
- CApaFileRecognizer* iFileRecognizer;
- MApaAppStarter* iAppStarter;
- HBufC* iFullFileName;
- TUid iFileType;
- TUid iAppUid;
- TRecognizedType iRecognizedType;
- TApaAppCapabilityBuf* iCapabilityBuf;
- private:
- CApaFileRecognizerType* iNext;
- TInt iLock;
- CFileRecognizerExtension* iFileRecognizerExtn;
- private:
- friend class CApaFileRecognizer;
- };
- inline void CApaFileRecognizer::SetAppStarter(CApaFileRecognizerType* aRecognizer,MApaAppStarter* aAppStarter)
- { aRecognizer->SetAppStarter(aAppStarter); }
- inline void CApaFileRecognizerType::SetAppStarter(MApaAppStarter* aAppStarter)
- { iAppStarter = aAppStarter; }
- inline TUid CApaFileRecognizerType::AppUid() const
- { return iAppUid; }
- inline TUid CApaFileRecognizerType::TypeUid() const
- { return iFileType; }
- inline CApaFileRecognizerType::TRecognizedType CApaFileRecognizerType::Type()const
- { return iRecognizedType; }
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikenv.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apacmdln.h" /* stack depth 6 */
- #line 26
- class CApaCommandLine : public CBase
- #line 43
- {
- public:
- __declspec(dllexport) static CApaCommandLine* NewL();
- __declspec(dllexport) static CApaCommandLine* NewLC();
- __declspec(dllexport) ~CApaCommandLine();
- #line 66
- __declspec(dllexport) void SetProcessEnvironmentL(RProcess& aProcess) const;
- __declspec(dllexport) static TInt GetCommandLineFromProcessEnvironment(CApaCommandLine*& aCommandLine);
- __declspec(dllexport) void GetIpcArgsLC(TIpcArgs& aIpcArgs) const;
- __declspec(dllexport) void ConstructCmdLineFromMessageL(const RMessage2& aMessage);
- __declspec(dllexport) void SetDocumentNameL(const TDesC& aDocName);
- __declspec(dllexport) TPtrC DocumentName() const;
- __declspec(dllexport) void SetExecutableNameL(const TDesC& aAppName);
- __declspec(dllexport) TPtrC ExecutableName() const;
- __declspec(dllexport) void SetOpaqueDataL(const TDesC8& aOpaqueData);
- __declspec(dllexport) TPtrC8 OpaqueData() const;
- __declspec(dllexport) void SetTailEndL(const TDesC8& aTailEnd);
- __declspec(dllexport) TPtrC8 TailEnd() const;
- __declspec(dllexport) void SetCommandL(TApaCommand aCommand);
- __declspec(dllexport) TApaCommand Command() const;
- __declspec(dllexport) void SetParentProcessId(TProcessId aProcessId);
- __declspec(dllexport) TProcessId ParentProcessId() const;
- __declspec(dllexport) void SetFileByHandleL(const RFile& aFile);
- __declspec(dllexport) void GetFileByHandleL(RFile& aFile) const;
- public:
- __declspec(dllexport) void SetServerNotRequiredL();
- __declspec(dllexport) void SetServerRequiredL(TUint aServerDifferentiator);
- __declspec(dllexport) TUint ServerRequired() const;
- __declspec(dllexport) void SetDefaultScreenL(TInt aDefaultScreenNumber);
- __declspec(dllexport) TInt DefaultScreen() const;
- __declspec(dllexport) TBool IsDefaultScreenSet() const;
- __declspec(dllexport) void SetParentWindowGroupID(TInt aParentWindowGroupID);
- __declspec(dllexport) TInt ParentWindowGroupID() const;
- __declspec(dllexport) void SetDebugMemFailL(TInt aDebugMemFail);
- __declspec(dllexport) TInt DebugMemFail() const;
- __declspec(dllexport) void SetAppStartupInstrumentationEventIdBaseL(TInt aEventIdBase);
- __declspec(dllexport) TInt AppStartupInstrumentationEventIdBase() const;
- __declspec(dllexport) static TInt EnvironmentSlotForPublicUse(TInt aIndex);
- private:
- struct SOption
- {
- const TDesC* iToken;
- TInt* iResult;
- TRadix iRadix;
- HBufC8* iHBufC8Result;
- };
- private:
- CApaCommandLine();
- void SetServerDifferentiatorL(TUint aServerDifferentiator);
- void ExternalizeL(RWriteStream& aStream) const;
- void InternalizeL(RReadStream& aStream);
- HBufC8* StreamableAttributesLC() const;
- void GetCommandLineFromProcessEnvironmentL();
- TInt Parse(const TDesC& aCmdLine);
- TPtrC StripQuotes(const TDesC& aDes) const;
- #line 153
- private:
- enum
- {
- EEnvironmentSlotUnused=0,
- EEnvironmentSlotMain=1,
- EEnvironmentSlotFsSession=2,
- EEnvironmentSlotFile=3,
- EFirstEnvironmentSlotForPublicUse=8,
- ENumberOfEnvironmentSlotsForPublicUse=4
- };
- enum
- {
- EIpcSlotMain=0,
- EIpcSlotFsSession=1,
- EIpcSlotFile=2
- };
- public:
- enum
- {
- EIpcFirstFreeSlot=3
- };
- private:
- HBufC* iDocumentName;
- HBufC* iExecutableName;
- HBufC8* iOpaqueData;
- HBufC8* iTailEnd;
- TApaCommand iCommand;
- TUint iServerDifferentiator;
- TInt iDefaultScreenNumber;
- TInt iParentWindowGroupID;
- TInt iDebugMemFail;
- TInt iAppStartupInstrumentationEventIdBase;
- RFile iFile;
- TProcessId iParentProcessId;
- };
- #line 15 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikenv.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulcolor.h" /* stack depth 6 */
- #line 33
- enum TLogicalColor
- {
- EColorWindowBackground,
- EColorWindowText,
- EColorControlBackground,
- EColorControlText,
- EColorControlSurroundBackground,
- EColorControlSurroundText,
- EColorControlHighlightBackground,
- EColorControlHighlightText,
- EColorControlDimmedBackground,
- EColorControlDimmedText,
- EColorControlDimmedHighlightBackground,
- EColorControlDimmedHighlightText,
- EColorDialogBackground,
- EColorDialogText,
- EColorDialogTitle,
- EColorDialogTitlePressed,
- EColorDialogTitleText,
- EColorDialogTitleTextPressed,
- EColorMenubarBackground,
- EColorMenubarText,
- EColorMenubarTitleBackground,
- EColorMenubarTitleText,
- EColorMenuPaneBackground,
- EColorMenuPaneText,
- EColorMenuPaneHighlight,
- EColorMenuPaneTextHighlight,
- EColorMenuPaneDimmedHighlight,
- EColorMenuPaneDimmedText,
- EColorMenuPaneDimmedTextHighlight,
- EColorButtonFaceClear,
- EColorButtonFaceSet,
- EColorButtonFaceSetPressed,
- EColorButtonFaceClearPressed,
- EColorButtonText,
- EColorButtonTextPressed,
- EColorButtonTextDimmed,
- EColorMsgWinForeground,
- EColorMsgWinBackground,
- EColorScrollBarBorder,
- EColorScrollBarShaft,
- EColorScrollBarShaftDimmed,
- EColorScrollBarShaftPressed,
- EColorScrollBarNoShaftOrThumb,
- EColorScrollButtonIcon,
- EColorScrollButtonIconPressed,
- EColorScrollButtonIconDimmed,
- EColorScrollButtonThumbBackground,
- EColorScrollButtonThumbBackgroundPressed,
- EColorScrollThumbDimmed,
- EColorScrollThumbEdge,
- EColorToolbarBackground,
- EColorToolbarText,
- EColorStatusPaneBackground,
- EColorStatusPaneText,
- EColorLabelText,
- EColorLabelTextEmphasis,
- EColorLabelDimmedText,
- EColorLabelHighlightPartialEmphasis,
- EColorLabelHighlightFullEmphasis,
- EColorNumberOfLogicalColors
- };
- class RReadStream;
- class RWriteStream;
- class CColorArray;
- class CColorList : public CBase
- #line 184
- {
- public:
- __declspec(dllexport) static CColorList* NewL(CArrayFix<TRgb> * aColors);
- __declspec(dllexport) ~CColorList();
- __declspec(dllexport) TRgb Color(TLogicalColor aColor) const;
- __declspec(dllexport) TInt Count() const;
- __declspec(dllexport) TRgb Color(TUid aApp,TInt aColor) const;
- __declspec(dllexport) CColorArray* ColorArray(TUid aApp) const;
- __declspec(dllexport) TBool ContainsColorArray(TUid aApp) const;
- __declspec(dllexport) void SetColor(TLogicalColor aLogicalColor,TRgb aColor);
- __declspec(dllexport) void AddColorArrayL(TUid aApp,CColorArray* aArray);
- __declspec(dllexport) void DeleteColorArray(TUid aApp);
- public:
- __declspec(dllexport) static CColorList* NewLC();
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) void MergeL(const CColorList& aList);
- private:
- CColorList(CArrayFix<TRgb> * aColors);
- TInt Find(TUid aApp) const;
- private:
- class TAppColorList
- {
- public:
- inline TAppColorList(TUid aApp,CColorArray* aColorArray);
- public:
- TUid iApp;
- CColorArray* iColorArray;
- };
- private:
- CArrayFix<TRgb> * iEikColors;
- CArrayFix<TAppColorList> * iAppColors;
- };
- class CColorArray : public CBase
- {
- public:
- __declspec(dllexport) static CColorArray* NewL();
- __declspec(dllexport) static CColorArray* NewLC();
- __declspec(dllexport) ~CColorArray();
- __declspec(dllexport) TRgb Color(TInt aLogicalColor) const;
- __declspec(dllexport) void SetColor(TInt aLogicalColor,TRgb aColor);
- __declspec(dllexport) TBool Contains(TInt aLogicalColor) const;
- __declspec(dllexport) TInt Count() const;
- __declspec(dllexport) void Reset();
- __declspec(dllexport) void AddL(TInt aLogicalColor,TRgb aColor);
- __declspec(dllexport) void Remove(TInt aLogicalColor);
- public:
- static CColorArray* NewLC(const CColorArray& aArray);
- public:
- void InternalizeL(RReadStream& aStream);
- void ExternalizeL(RWriteStream& aStream) const;
- private:
- CColorArray();
- void ConstructL();
- TInt Find(TInt aLogicalColor) const;
- private:
- class TColor
- {
- public:
- inline TColor();
- inline TColor(TRgb aColor,TInt aLogicalColor);
- public:
- void InternalizeL(RReadStream& aStream);
- void ExternalizeL(RWriteStream& aStream) const;
- public:
- TRgb iColor;
- TInt iLogicalColor;
- };
- CArrayFixFlat<TColor> iColors;
- };
- #line 18 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikenv.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikdgfty.h" /* stack depth 6 */
- #line 13
- class MEikFindAndReplaceDlgObserver;
- class CCoeControl;
- class CEikEmbeddableAppList;
- class CGraphicsDevice;
- class CApaDoor;
- class CApaDocument;
- class TCharFormat;
- class TCharFormatMask;
- class TRgb;
- class CEikGlobalTextEditor;
- struct SEdwinFindModel;
- class CParaFormat;
- class TParaFormatMask;
- class CPrintSetup;
- class MEikCDlgDialogFactory
- {
- public:
- virtual TBool RunCharMapDlgLD(CCoeControl* aControl) = 0;
- virtual TBool RunFontDlgLD( TCharFormat& aFormat,
- TCharFormatMask& aAttribChangedMask,
- TCharFormatMask& aUndeterminedMask,
- TDesC& aTextSelection,
- TInt aFonts,
- CGraphicsDevice* aGraphicsDevice,
- TInt aFontControlFlags,
- const TRgb aBackGroundColor) = 0;
- virtual TBool RunInsertObjectDlgLD( CEikEmbeddableAppList* aList,
- TInt& aChoice) = 0;
- virtual TBool RunObjectInfoDlgLD(const TDesC& aCaption) = 0;
- virtual TBool RunFormatObjectDlgLD( CApaDoor& aDoor,
- CApaDocument& aDoc,
- const TSize& aDefaultIconSize) = 0;
- virtual TBool RunEdwinFindDlgLD(SEdwinFindModel* aModel,
- CDesCArray* aFindList) = 0;
- virtual TBool RunEdwinReplaceDlgLD( SEdwinFindModel* aModel,
- CDesCArray* aFindList,
- CDesCArray* aReplaceList) = 0;
- virtual void RunEdwinFindAndReplaceDlgLD(MEikFindAndReplaceDlgObserver& aObserver,
- SEdwinFindModel& aModel, TBool aFindOnly, TRect aEdwinRect)=0;
- virtual TBool RunEdwinReplaceOptionDlgLD( CEikGlobalTextEditor* aEdwin,
- SEdwinFindModel* aModel) = 0;
- virtual TBool RunAlignDlgLD( CParaFormat* aFormat,
- TParaFormatMask& aAttribChangedMask,
- TParaFormatMask& aUndeterminedMask) = 0;
- virtual TBool RunBorderDlgLD( CParaFormat* aFormat,
- TParaFormatMask& aAttribChangedMask,
- TParaFormatMask& aUndeterminedMask) = 0;
- virtual TBool RunSpaceDlgLD( CParaFormat* aFormat,
- TParaFormatMask& aAttribChangedMask,
- TParaFormatMask& aUndeterminedMask) = 0;
- virtual TBool RunTabsDlgLD( CParaFormat* aFormat,
- TParaFormatMask& aAttribChangedMask,
- TParaFormatMask& aUndeterminedMask,
- const TInt aPageWidth) = 0;
- virtual TBool RunIndentDlgLD( CParaFormat* aFormat,
- TParaFormatMask& aAttribChangedMask,
- TParaFormatMask& aUndeterminedMask,
- const TInt aPageWidth) = 0;
- protected:
- __declspec(dllexport) MEikCDlgDialogFactory();
- private:
- __declspec(dllexport) virtual void MEikCDlgDialogFactory_Reserved1();
- __declspec(dllexport) virtual void MEikCDlgDialogFactory_Reserved2();
- private:
- TInt iMEikCDlgDialogFactory;
- };
- class MEikPrintDialogFactory
- {
- public:
- virtual TBool RunPaginateDlgLD( CEikGlobalTextEditor* aEditor,
- CPrintSetup* aPrintSetup,
- CArrayFix<TInt> * aCharsPerPage) = 0;
- virtual CPrintSetup* NewDefaultPrintSetupL() = 0;
- protected:
- __declspec(dllexport) MEikPrintDialogFactory();
- private:
- __declspec(dllexport) virtual void MEikPrintDialogFactory_Reserved1();
- __declspec(dllexport) virtual void MEikPrintDialogFactory_Reserved2();
- private:
- TInt iMEikPrintDialogFactory;
- };
- class MEikFileDialogFactory
- {
- public:
- virtual TBool RunFileSaveAsDlgLD( TDes* aFileName,
- TBool* aUseNewFile,
- TInt aTitleId,
- TBool aAppendExtension) = 0;
- virtual TBool RunScreenCaptureDlgLD(TDes* aFileName,
- TBool& aSaveAsMonochromeImage,
- TInt aTitleId) = 0;
- protected:
- __declspec(dllexport) MEikFileDialogFactory();
- private:
- __declspec(dllexport) virtual void MEikFileDialogFactory_Reserved1();
- __declspec(dllexport) virtual void MEikFileDialogFactory_Reserved2();
- private:
- TInt iMEikFileDialogFactory;
- };
- #line 19 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikenv.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiklibry.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikfctry.h" /* stack depth 7 */
- #line 13
- class CCoeControl;
- enum
- {
- EEikControlHasEars=0x01,
- EEikControlIsNonFocusing=0x02,
- EEikControlHasExtraAscent=0x04,
- EEikControlIsNonEditInPlace=0x08
- };
- struct SEikControlInfo
- {
- CCoeControl* iControl;
- TInt iTrailerTextId;
- TInt iFlags;
- };
- class EikControlFactory
- {
- public:
- __declspec(dllexport) static SEikControlInfo CreateByTypeL(TInt aControlType);
- };
- #line 18 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiklibry.h" /* stack depth 6 */
- typedef SEikControlInfo (*TCreateByTypeFunction)(TInt);
- class CEikLibrary : public CBase
- {
- public:
- virtual void InitializeL() = 0;
- virtual CArrayFix<TFileName> * ResourceFileArrayL() const = 0;
- virtual CArrayFix<TCreateByTypeFunction> * ControlFactoryArrayL() const = 0;
- __declspec(dllexport) virtual void PostAppUiInitializeL();
- };
- class CEikLibrary2 : public CEikLibrary
- {
- public:
- __declspec(dllexport) virtual ~CEikLibrary2();
- __declspec(dllexport) static CEikLibrary2* LoadLibraryL(TUid aImplementationUid);
- private:
- TUid iDtrkey;
- };
- #line 21 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikenv.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikamnt.h" /* stack depth 6 */
- #line 11
- class CGulIcon;
- class MEikAutoMenuObserver;
- class CEikAutoMenuTitle : public CBase
- #line 25
- {
- public:
- enum TTitlePos
- {
- EStart,
- EEnd
- };
- enum { ENominalTextLength=40 };
- public:
- __declspec(dllexport) static CEikAutoMenuTitle* NewLC(TTitlePos aPos,const TDesC& aText,MEikAutoMenuObserver& aMenuObserver,
- TInt aMenuPaneResourceId=0,CGulIcon* aIcon=0 );
- __declspec(dllexport) ~CEikAutoMenuTitle();
- private:
- CEikAutoMenuTitle(TTitlePos aPos,const TDesC& aText,MEikAutoMenuObserver& aMenuObserver,
- TInt aMenuPaneResourceId,CGulIcon* aIcon);
- public:
- TTitlePos iPos;
- TBuf<ENominalTextLength> iText;
- MEikAutoMenuObserver& iMenuObserver;
- TInt iMenuPaneResourceId;
- CGulIcon* iIcon;
- };
- class CEikAutoMenuTitleArray : public CArrayPtrFlat<CEikAutoMenuTitle>
- #line 67
- {
- public:
- CEikAutoMenuTitleArray();
- ~CEikAutoMenuTitleArray();
- };