|
1 /* |
|
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Definition of CGlxtnFileInfo |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 /** |
|
22 * @internal reviewed 30/07/2007 by Simon Brooks |
|
23 */ |
|
24 |
|
25 #ifndef C_GLXTNFILEINFO_H |
|
26 #define C_GLXTNFILEINFO_H |
|
27 |
|
28 #include <e32base.h> |
|
29 |
|
30 /** |
|
31 * Object holding information about a file to be thumbnailed. |
|
32 * |
|
33 * @author Dan Rhodes |
|
34 * @ingroup glx_thumbnail_creator |
|
35 */ |
|
36 class CGlxtnFileInfo : public CBase |
|
37 { |
|
38 public: |
|
39 inline CGlxtnFileInfo(); |
|
40 inline ~CGlxtnFileInfo(); |
|
41 |
|
42 /** |
|
43 * Copy info from one object to another. |
|
44 */ |
|
45 inline void CopyInfoL(CGlxtnFileInfo& aInfo); |
|
46 |
|
47 /** |
|
48 * Get the full path to the media file. |
|
49 * @return Media file path. |
|
50 */ |
|
51 inline const TDesC& FilePath() const; |
|
52 |
|
53 /** |
|
54 * Set the full path to the media file. |
|
55 * @param aPath Media file path (takes ownership). |
|
56 */ |
|
57 inline void SetFilePath(HBufC* aPath); |
|
58 |
|
59 /** |
|
60 * Set the full path to the media file. |
|
61 * @param aPath Media file path. |
|
62 */ |
|
63 inline void SetFilePathL(const TDesC& aPath); |
|
64 |
|
65 /** |
|
66 * Set the full path to the media file. |
|
67 * @param aIsVideo Set to true if the file is a video. |
|
68 * @param aIsProtected Set to true if the file is DRM protected. |
|
69 */ |
|
70 void IdentifyFileL(TBool& aIsVideo, TBool& aIsProtected); |
|
71 |
|
72 public: |
|
73 /** Size of the media file */ |
|
74 TInt iFileSize; |
|
75 /** Last modified time of the media file */ |
|
76 TTime iFileTime; |
|
77 /** True if the thumbnail is temporary and should not be stored */ |
|
78 TBool iTemporary; |
|
79 TBool iIsVideo; |
|
80 TBool iIsProtected; |
|
81 |
|
82 private: |
|
83 /** Full path of the media file */ |
|
84 HBufC* iFilePath; |
|
85 }; |
|
86 |
|
87 #include "glxtnfileinfo.inl" |
|
88 |
|
89 #endif // C_GLXTNFILEINFO_H |