1 /* |
|
2 * Copyright (c) 2002-2004 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: Utility class for SendUI. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CSENDUIDATAUTILS_H |
|
22 #define CSENDUIDATAUTILS_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include <f32file.h> |
|
27 #include <apmstd.h> |
|
28 #include <msgmimetypes.h> |
|
29 |
|
30 class CSendingServiceInfo; |
|
31 // CONSTANTS |
|
32 _LIT8( KSenduiAudioPattern, "*audio/*" ); |
|
33 _LIT8( KSenduiVideoPattern, "*video/*" ); |
|
34 |
|
35 // FORWARD DECLARATION |
|
36 class RApaLsSession; |
|
37 |
|
38 // CLASS DECLARATION |
|
39 |
|
40 /** |
|
41 * Utility class for SendUI. |
|
42 * |
|
43 * @lib SenduiDataUtils.lib |
|
44 * @since Series 60 3.0 |
|
45 */ |
|
46 NONSHARABLE_CLASS (CSendUiDataUtils) : public CBase |
|
47 { |
|
48 public: // Constructors and destructor |
|
49 |
|
50 /** |
|
51 * Two-phased constructor. |
|
52 */ |
|
53 IMPORT_C static CSendUiDataUtils* NewL( RFs& aFs ); |
|
54 |
|
55 /** |
|
56 * Destructor. |
|
57 */ |
|
58 virtual ~CSendUiDataUtils(); |
|
59 |
|
60 public: // New functions |
|
61 |
|
62 /** |
|
63 * Resolves mime types for |
|
64 * @since Series ?XX ?SeriesXX_version |
|
65 * @param aTotalSize Return value contains total size of confirmed files |
|
66 * @return None. |
|
67 */ |
|
68 IMPORT_C void ResolveFileMimeTypeL( |
|
69 const TDesC& aFilePath, |
|
70 TDataType& aMimeType ); |
|
71 |
|
72 /** |
|
73 * ?member_description. |
|
74 * @since Series ?XX ?SeriesXX_version |
|
75 * @param aTotalSize Return value contains total size of confirmed files |
|
76 * @return None. |
|
77 */ |
|
78 IMPORT_C void ResolveFileMimeTypeL( |
|
79 const RFile& aFile, |
|
80 TDataType& aMimeType ); |
|
81 |
|
82 private: |
|
83 |
|
84 /** |
|
85 * C++ default constructor. |
|
86 */ |
|
87 CSendUiDataUtils( RFs& aFs ); |
|
88 |
|
89 private: |
|
90 |
|
91 // Reference to an open fileserver session |
|
92 RFs& iFs; |
|
93 |
|
94 RApaLsSession* iApaLsSession; |
|
95 |
|
96 }; |
|
97 |
|
98 #endif // CSENDUIDATAUTILS_H |
|
99 |
|
100 // End of File |
|