equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006 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: Representation of each item in the database |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CMPXHARVESTERDBITEM_H |
|
20 #define CMPXHARVESTERDBITEM_H |
|
21 |
|
22 /** |
|
23 * Representation of each item in the db |
|
24 * |
|
25 * @lib mpxfilehandler |
|
26 * @since S60 3.0 |
|
27 */ |
|
28 NONSHARABLE_CLASS( CMPXHarvesterDbItem ) : public CBase |
|
29 { |
|
30 public: |
|
31 |
|
32 virtual ~CMPXHarvesterDbItem() |
|
33 { |
|
34 delete iFile; |
|
35 }; |
|
36 |
|
37 /** |
|
38 * Compares two CMPXHarvesterDbItem objects. |
|
39 * @param aFirst Reference to the first instance for comparison |
|
40 * @param aSecond Reference to the second instance for comparison |
|
41 * @return 0 if the compared instances are equal |
|
42 */ |
|
43 static TInt Compare(const CMPXHarvesterDbItem& aFirst, |
|
44 const CMPXHarvesterDbItem& aSecond) |
|
45 { |
|
46 return aFirst.iFile->CompareF( *( aSecond.iFile ) ); |
|
47 } |
|
48 |
|
49 public: // Member variables |
|
50 HBufC* iFile; |
|
51 TTime iLastModifiedTime; |
|
52 TInt iColId; |
|
53 TBool iDrm; |
|
54 }; |
|
55 |
|
56 |
|
57 #endif // CMPXHARVESTERDBITEM_H |