|
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 */ |
|
20 |
|
21 #ifndef MTPIMAGEDPUTILITS_H |
|
22 #define MTPIMAGEDPUTILITS_H |
|
23 |
|
24 #include <e32base.h> |
|
25 |
|
26 #include <mtp/mtpprotocolconstants.h> |
|
27 |
|
28 #include "rmediasyncserver.h" |
|
29 |
|
30 class MMTPDataProviderFramework; |
|
31 class CMTPObjectMetaData; |
|
32 class TMTPTypeUint32; |
|
33 class CMTPImageDataProvider; |
|
34 |
|
35 /** |
|
36 Defines static utility functions |
|
37 **/ |
|
38 |
|
39 class MTPImageDpUtilits |
|
40 { |
|
41 public: |
|
42 |
|
43 static TMTPResponseCode VerifyObjectHandleL(MMTPDataProviderFramework& aFramework, const TMTPTypeUint32& aHandle, CMTPObjectMetaData& aMetaData); |
|
44 |
|
45 static TInt32 FindStorage(MMTPDataProviderFramework& aFramework, const TDesC& aPath); |
|
46 |
|
47 static TUint32 FindParentHandleL(MMTPDataProviderFramework& aFramework, CMTPImageDataProvider& aDataProvider, const TDesC& aFullPath); |
|
48 |
|
49 /** |
|
50 * Calculate the new pictures value and set RProperty. |
|
51 |
|
52 @param aDataProvider The image data provider reference |
|
53 @param aNewPics The new pictures count |
|
54 @param aSetRProperty Whether should set RProperty value to notify all subscribers. |
|
55 */ |
|
56 static void UpdateNewPicturesValue(CMTPImageDataProvider& aDataProvider, TInt aNewPics, TBool aSetRProperty); |
|
57 }; |
|
58 |
|
59 #endif MTPIMAGEDPUTILITS_H |