|
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: Music Player album art editor dialog declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MPXALBUMARTEDITORDIALOGIMAGETHUMBNAILUTIL_H |
|
20 #define MPXALBUMARTEDITORDIALOGIMAGETHUMBNAILUTIL_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <badesca.h> |
|
24 #include <MMGFetchVerifier.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * Thumbnail command event handling class. |
|
32 */ |
|
33 class CMPXAlbumArtEditorDialogImageThumbnailUtil : public CBase, |
|
34 private MMGFetchVerifier |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Creates a new instance of this class. |
|
40 * @param aEngine Phonebook contact engine. |
|
41 * @param aThumbnailPopup the UI control that will display the |
|
42 * thumbnail. |
|
43 * @return a new instance of this class. |
|
44 */ |
|
45 static CMPXAlbumArtEditorDialogImageThumbnailUtil* NewL(); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~CMPXAlbumArtEditorDialogImageThumbnailUtil(); |
|
51 |
|
52 public: // New functions |
|
53 |
|
54 /** |
|
55 * Fetch a thumbnail from the photo album, attach it to a contact and |
|
56 * display the thumbnail. |
|
57 * |
|
58 * @param aContactItem contact to attach the thumbnail to. |
|
59 * @return result of MGFetch::RunL |
|
60 */ |
|
61 TBool FetchThumbnailL( CDesCArray& aFilesArray ); |
|
62 |
|
63 private: // Implementation |
|
64 |
|
65 /** |
|
66 * Default constructor. |
|
67 */ |
|
68 CMPXAlbumArtEditorDialogImageThumbnailUtil(); |
|
69 |
|
70 /** |
|
71 * Second-phase constructor. |
|
72 */ |
|
73 void ConstructL(); |
|
74 |
|
75 private: // from MMGFetchVerifier |
|
76 |
|
77 /** |
|
78 * Verify image selection. |
|
79 * @param aSelectedFiles is the pathname of the selected file. |
|
80 */ |
|
81 TBool VerifySelectionL( const MDesCArray* aSelectedFiles ); |
|
82 |
|
83 private: // Data |
|
84 }; |
|
85 |
|
86 #endif // MPXALBUMARTEDITORDIALOGIMAGETHUMBNAILUTIL_H |
|
87 |
|
88 // End of File |