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 // ----------------------------------------------------------------------------- |
|
25 // Constructor |
|
26 // ----------------------------------------------------------------------------- |
|
27 // |
|
28 inline CGlxtnFileInfo::CGlxtnFileInfo() |
|
29 { |
|
30 } |
|
31 |
|
32 // ----------------------------------------------------------------------------- |
|
33 // Destructor |
|
34 // ----------------------------------------------------------------------------- |
|
35 // |
|
36 inline CGlxtnFileInfo::~CGlxtnFileInfo() |
|
37 { |
|
38 delete iFilePath; |
|
39 } |
|
40 |
|
41 // ----------------------------------------------------------------------------- |
|
42 // CopyInfoL |
|
43 // ----------------------------------------------------------------------------- |
|
44 // |
|
45 inline void CGlxtnFileInfo::CopyInfoL(CGlxtnFileInfo& aInfo) |
|
46 { |
|
47 SetFilePathL(aInfo.FilePath()); |
|
48 iFileSize = aInfo.iFileSize; |
|
49 iFileTime = aInfo.iFileTime; |
|
50 iTemporary = aInfo.iTemporary; |
|
51 iIsVideo = aInfo.iIsVideo; |
|
52 iIsProtected = aInfo.iIsProtected; |
|
53 } |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // FilePath |
|
57 // Get the full path to the media file. |
|
58 // ----------------------------------------------------------------------------- |
|
59 // |
|
60 inline const TDesC& CGlxtnFileInfo::FilePath() const |
|
61 { |
|
62 return *iFilePath; |
|
63 } |
|
64 |
|
65 // ----------------------------------------------------------------------------- |
|
66 // SetFilePathL |
|
67 // Set the full path to the media file. |
|
68 // ----------------------------------------------------------------------------- |
|
69 // |
|
70 inline void CGlxtnFileInfo::SetFilePath(HBufC* aPath) |
|
71 { |
|
72 delete iFilePath; |
|
73 iFilePath = aPath; |
|
74 } |
|
75 |
|
76 // ----------------------------------------------------------------------------- |
|
77 // SetFilePathL |
|
78 // Set the full path to the media file. |
|
79 // ----------------------------------------------------------------------------- |
|
80 // |
|
81 inline void CGlxtnFileInfo::SetFilePathL(const TDesC& aPath) |
|
82 { |
|
83 delete iFilePath; |
|
84 iFilePath = NULL; |
|
85 iFilePath = aPath.AllocL(); |
|
86 } |
|