|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent - Internal Symbian test code |
|
19 */ |
|
20 |
|
21 #if !defined(__CONTENTMGR_H__) |
|
22 #define __CONTENTMGR_H__ |
|
23 |
|
24 #include <e32def.h> |
|
25 #include <e32std.h> |
|
26 #include <gdi.h> |
|
27 #include <eikenv.h> |
|
28 |
|
29 class RFs; |
|
30 class CTestContentTls; |
|
31 class TDataType; |
|
32 |
|
33 class CEikTestContentManager : public CBase, public MEikPictureFactory, public MPictureFactory |
|
34 { |
|
35 public: |
|
36 IMPORT_C static CEikTestContentManager* NewL(RFs& aFs); |
|
37 IMPORT_C ~CEikTestContentManager(); |
|
38 IMPORT_C void GetPictureTypeFromDataL(TUid& aPictureType,CBase*& aData,const TDesC& aFileName,const TDesC8& aSrcData) const; |
|
39 public: // from MEikPictureFactory |
|
40 TBool SupportsPictureType(TUid aPictureType) const; |
|
41 const MPictureFactory* PictureFactory(TUid aPictureType) const; |
|
42 TPictureHeader InsertL(TUid aPictureType,CBase* aData); |
|
43 void EditL(const TPictureHeader& aPictureHeader,TBool aReadOnly); |
|
44 public: // from MPictureFactory |
|
45 void NewPictureL(TPictureHeader& aHeader,const CStreamStore& aDeferredPictureStore) const; |
|
46 private: |
|
47 CEikTestContentManager(RFs& aFs); |
|
48 private: |
|
49 RFs& iFs; |
|
50 }; |
|
51 |
|
52 #endif // __CONTENTMGR_H__ |