equal
deleted
inserted
replaced
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
10 // |
10 // |
11 // Contributors: |
11 // Contributors: |
12 // |
12 // |
13 // Description: |
13 // Description: |
|
14 // apgdoor.cpp |
14 // |
15 // |
15 |
16 |
16 #include <s32stor.h> |
17 #include <s32stor.h> |
17 #include <fbs.h> |
18 #include <fbs.h> |
|
19 #include <e32def_private.h> // MattR addition for __PROFILE_END error |
|
20 |
|
21 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
22 #if !defined(__APA_INTERNAL_H__) |
|
23 #include "apainternal.h" |
|
24 #endif |
|
25 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS |
18 |
26 |
19 #include "APGDOOR.H" |
27 #include "APGDOOR.H" |
20 #include "APGICNFL.H" |
28 #include "APGICNFL.H" |
21 #include "APGCLI.H" |
29 #include "APGCLI.H" |
22 #include "APACLN.H" |
30 #include "APACLN.H" |
29 const TUid KUidApaDoorStateStream={0x1000012a}; // build invariant |
37 const TUid KUidApaDoorStateStream={0x1000012a}; // build invariant |
30 const TInt KHugeGranularity=4096; // 4k granularity for the door's host buffer |
38 const TInt KHugeGranularity=4096; // 4k granularity for the door's host buffer |
31 // default icon size only used if door was created by a model door, set to glass, but does not support glass |
39 // default icon size only used if door was created by a model door, set to glass, but does not support glass |
32 #define KDefaultIconSizeInTwips TSize(500,500) |
40 #define KDefaultIconSizeInTwips TSize(500,500) |
33 |
41 |
34 /////////////////////////////////////////// |
42 // |
35 // CApaDoor |
43 // CApaDoor |
36 /////////////////////////////////////////// |
44 // |
37 |
45 |
38 EXPORT_C CApaDoor* CApaDoor::NewLC(RFs& aFs, CApaDocument& aDoc,const TSize& aDefaultIconSizeInTwips) |
46 EXPORT_C CApaDoor* CApaDoor::NewLC(RFs& aFs, CApaDocument& aDoc,const TSize& aDefaultIconSizeInTwips) |
39 /** Creates a new wrapper for the specified embedded document and places a |
47 /** Creates a new wrapper for the specified embedded document and places a |
40 pointer to it onto the cleanup stack. |
48 pointer to it onto the cleanup stack. |
41 |
49 |
93 CApaDoor::CApaDoor(RFs& aFs, CApaDocument& aDoc,const TSize& aDefaultIconSizeInTwips) |
101 CApaDoor::CApaDoor(RFs& aFs, CApaDocument& aDoc,const TSize& aDefaultIconSizeInTwips) |
94 :iFs(aFs), |
102 :iFs(aFs), |
95 iApaProcess(aDoc.Process()), |
103 iApaProcess(aDoc.Process()), |
96 iApaDoc(&aDoc), |
104 iApaDoc(&aDoc), |
97 iIconSizeInTwips(aDefaultIconSizeInTwips) |
105 iIconSizeInTwips(aDefaultIconSizeInTwips) |
98 {__DECLARE_NAME(_S("CApaDoor"));} |
106 {} |
99 |
107 |
100 |
108 |
101 CApaDoor::CApaDoor(RFs& aFs, CApaProcess& aProcess) |
109 CApaDoor::CApaDoor(RFs& aFs, CApaProcess& aProcess) |
102 :iFs(aFs), |
110 :iFs(aFs), |
103 iApaProcess(&aProcess) |
111 iApaProcess(&aProcess) |
104 {__DECLARE_NAME(_S("CApaDoor"));} |
112 {} |
105 |
113 |
106 |
114 |
107 EXPORT_C CApaDoor::~CApaDoor() |
115 EXPORT_C CApaDoor::~CApaDoor() |
108 /** Destructor. |
116 /** Destructor. |
109 |
117 |
779 else |
787 else |
780 SetSizeInTwips(aSize); |
788 SetSizeInTwips(aSize); |
781 } |
789 } |
782 |
790 |
783 |
791 |
784 /////////////////////////////////// |
792 // |
785 // TApaPictureFactory |
793 // TApaPictureFactory |
786 /////////////////////////////////// |
794 // |
787 |
795 |
788 #define KDoNotApplyIconSize TSize(-1,-1) |
796 #define KDoNotApplyIconSize TSize(-1,-1) |
789 |
797 |
790 /** Constructor for TApaPictureFactory */ |
798 /** Constructor for TApaPictureFactory */ |
791 EXPORT_C TApaPictureFactory::TApaPictureFactory() |
799 EXPORT_C TApaPictureFactory::TApaPictureFactory() |
845 } |
853 } |
846 // CleanupStack::PopAndDestroy(); // fs - it's not needed any more as the base class doesn't use it |
854 // CleanupStack::PopAndDestroy(); // fs - it's not needed any more as the base class doesn't use it |
847 } |
855 } |
848 |
856 |
849 |
857 |
850 //////////////////////////////////// |
858 // |
851 // HBufBuf |
859 // HBufBuf |
852 //////////////////////////////////// |
860 // |
853 |
861 |
854 HBufBuf* HBufBuf::NewL(CBufBase& aBuf,TInt aPos,TInt aMode) |
862 HBufBuf* HBufBuf::NewL(CBufBase& aBuf,TInt aPos,TInt aMode) |
855 // |
863 // |
856 // Create a pre-set buffer stream buffer. |
864 // Create a pre-set buffer stream buffer. |
857 // |
865 // |
866 // Finished with this stream buffer. |
874 // Finished with this stream buffer. |
867 // |
875 // |
868 { |
876 { |
869 delete this; |
877 delete this; |
870 } |
878 } |
|
879 |