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