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 * @internal reviewed 30/07/2007 by Simon Brooks |
|
22 */ |
|
23 |
|
24 #ifndef C_GLXTNFILEINFO_H |
|
25 #define C_GLXTNFILEINFO_H |
|
26 |
|
27 #include <e32base.h> |
|
28 |
|
29 /** |
|
30 * Object holding information about a file to be thumbnailed. |
|
31 * |
|
32 * @author Dan Rhodes |
|
33 * @ingroup glx_thumbnail_creator |
|
34 */ |
|
35 class CGlxtnFileInfo : public CBase |
|
36 { |
|
37 public: |
|
38 inline CGlxtnFileInfo(); |
|
39 inline ~CGlxtnFileInfo(); |
|
40 |
|
41 /** |
|
42 * Copy info from one object to another. |
|
43 */ |
|
44 inline void CopyInfoL(CGlxtnFileInfo& aInfo); |
|
45 |
|
46 /** |
|
47 * Get the full path to the media file. |
|
48 * @return Media file path. |
|
49 */ |
|
50 inline const TDesC& FilePath() const; |
|
51 |
|
52 /** |
|
53 * Set the full path to the media file. |
|
54 * @param aPath Media file path (takes ownership). |
|
55 */ |
|
56 inline void SetFilePath(HBufC* aPath); |
|
57 |
|
58 /** |
|
59 * Set the full path to the media file. |
|
60 * @param aPath Media file path. |
|
61 */ |
|
62 inline void SetFilePathL(const TDesC& aPath); |
|
63 |
|
64 /** |
|
65 * Set the full path to the media file. |
|
66 * @param aIsVideo Set to true if the file is a video. |
|
67 * @param aIsProtected Set to true if the file is DRM protected. |
|
68 */ |
|
69 void IdentifyFileL(TBool& aIsVideo, TBool& aIsProtected); |
|
70 |
|
71 public: |
|
72 /** Size of the media file */ |
|
73 TInt iFileSize; |
|
74 /** Last modified time of the media file */ |
|
75 TTime iFileTime; |
|
76 /** True if the thumbnail is temporary and should not be stored */ |
|
77 TBool iTemporary; |
|
78 TBool iIsVideo; |
|
79 TBool iIsProtected; |
|
80 |
|
81 private: |
|
82 /** Full path of the media file */ |
|
83 HBufC* iFilePath; |
|
84 }; |
|
85 |
|
86 #include "glxtnfileinfo.inl" |
|
87 |
|
88 #endif // C_GLXTNFILEINFO_H |
|