54 iStartDate(0), |
53 iStartDate(0), |
55 iEndDate(0), |
54 iEndDate(0), |
56 iNoDRM(EFalse) |
55 iNoDRM(EFalse) |
57 {} |
56 {} |
58 |
57 |
|
58 /** |
|
59 * Destructor |
|
60 */ |
|
61 inline ~TGlxFilterProperties () |
|
62 { |
|
63 delete iPath; |
|
64 } |
|
65 |
|
66 /** |
|
67 * overloaded assignment operator |
|
68 * |
|
69 * @param aFilterProperties, assigned object |
|
70 * @return TGlxFilterProperties object after deep copying the path. |
|
71 */ |
|
72 inline TGlxFilterProperties& operator=(const TGlxFilterProperties& aFilterProperties) |
|
73 { |
|
74 if(this != &aFilterProperties) |
|
75 { |
|
76 iSortOrder = aFilterProperties.iSortOrder; |
|
77 iSortDirection = aFilterProperties.iSortDirection; |
|
78 iIncludeCameraAlbum = aFilterProperties.iIncludeCameraAlbum; |
|
79 iMinCount = aFilterProperties.iMinCount; |
|
80 iContainsItem = aFilterProperties.iContainsItem; |
|
81 iExcludeAnimation = aFilterProperties.iExcludeAnimation; |
|
82 iLastCaptureDate = aFilterProperties.iLastCaptureDate; |
|
83 iMaxCount = aFilterProperties.iMaxCount; |
|
84 iThumbnailLoadability = aFilterProperties.iThumbnailLoadability; |
|
85 iItemType = aFilterProperties.iItemType; |
|
86 iPromoteSystemItems = aFilterProperties.iPromoteSystemItems; |
|
87 iOrigin = aFilterProperties.iOrigin; |
|
88 iUri = aFilterProperties.iUri; |
|
89 iStartDate = aFilterProperties.iStartDate; |
|
90 iEndDate = aFilterProperties.iEndDate; |
|
91 iNoDRM = aFilterProperties.iNoDRM; |
|
92 |
|
93 // creating a copy of iPath |
|
94 if(aFilterProperties.iPath) |
|
95 { |
|
96 const CMPXCollectionPath* path = aFilterProperties.iPath; |
|
97 iPath = CMPXCollectionPath::NewL(*path); |
|
98 } |
|
99 else |
|
100 { |
|
101 iPath = NULL; |
|
102 } |
|
103 } |
|
104 return *this; |
|
105 } |
|
106 /** |
|
107 * Copy constructor |
|
108 * |
|
109 * @param aFilterProperties, assigned object |
|
110 */ |
|
111 inline TGlxFilterProperties(const TGlxFilterProperties& aFilterProperties) |
|
112 { |
|
113 iSortOrder = aFilterProperties.iSortOrder; |
|
114 iSortDirection = aFilterProperties.iSortDirection; |
|
115 iIncludeCameraAlbum = aFilterProperties.iIncludeCameraAlbum; |
|
116 iMinCount = aFilterProperties.iMinCount; |
|
117 iContainsItem = aFilterProperties.iContainsItem; |
|
118 iExcludeAnimation = aFilterProperties.iExcludeAnimation; |
|
119 iLastCaptureDate = aFilterProperties.iLastCaptureDate; |
|
120 iMaxCount = aFilterProperties.iMaxCount; |
|
121 iThumbnailLoadability = aFilterProperties.iThumbnailLoadability; |
|
122 iItemType = aFilterProperties.iItemType; |
|
123 iPromoteSystemItems = aFilterProperties.iPromoteSystemItems; |
|
124 iOrigin = aFilterProperties.iOrigin; |
|
125 iUri = aFilterProperties.iUri; |
|
126 iStartDate = aFilterProperties.iStartDate; |
|
127 iEndDate = aFilterProperties.iEndDate; |
|
128 iNoDRM = aFilterProperties.iNoDRM; |
|
129 |
|
130 // creating a copy of iPath |
|
131 if(aFilterProperties.iPath) |
|
132 { |
|
133 const CMPXCollectionPath* path = aFilterProperties.iPath; |
|
134 iPath = CMPXCollectionPath::NewL(*path); |
|
135 } |
|
136 else |
|
137 { |
|
138 iPath = NULL; |
|
139 } |
|
140 } |
59 public: |
141 public: |
60 TGlxFilterSortOrder iSortOrder; |
142 TGlxFilterSortOrder iSortOrder; |
61 TGlxFilterSortDirection iSortDirection; |
143 TGlxFilterSortDirection iSortDirection; |
62 TBool iIncludeCameraAlbum; |
144 TBool iIncludeCameraAlbum; |
63 TInt iMinCount; |
145 TInt iMinCount; |