1 /* |
|
2 * Copyright (c) 2009 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: mms creation mode checks |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MMS_INSERT_CHECK_OPERATION_H |
|
19 #define MMS_INSERT_CHECK_OPERATION_H |
|
20 |
|
21 #include <msgmediainfo.h> |
|
22 #include <qstring.h> |
|
23 |
|
24 class CMmsConformance; |
|
25 class CMsgMediaResolver; |
|
26 class CDRMHelper; |
|
27 |
|
28 enum InsertCheckOperationErrors |
|
29 { |
|
30 EInsertSuccess = 0, EInsertQueryAbort, EInsertNotSupported |
|
31 }; |
|
32 |
|
33 class MmsInsertCheckOperation: public MMediaInfoObserver |
|
34 { |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Constructor |
|
39 */ |
|
40 MmsInsertCheckOperation(); |
|
41 |
|
42 /** |
|
43 * Destructor |
|
44 */ |
|
45 ~MmsInsertCheckOperation(); |
|
46 |
|
47 /** |
|
48 * media insert checks. |
|
49 * @param file, filepath |
|
50 */ |
|
51 int checkModeForInsert(const QString& file); |
|
52 |
|
53 /** |
|
54 * From MMediaInfoObserver |
|
55 */ |
|
56 void MediaInfoParsed(); |
|
57 |
|
58 private: |
|
59 |
|
60 /* |
|
61 * Launch query dialog |
|
62 */ |
|
63 bool launchEditorQuery(); |
|
64 |
|
65 private: |
|
66 |
|
67 /* |
|
68 * Mms conformance. |
|
69 * Own |
|
70 */ |
|
71 CMmsConformance* iMmsConformance; |
|
72 |
|
73 /* |
|
74 * Media resolver. |
|
75 * Own |
|
76 */ |
|
77 CMsgMediaResolver* iMediaResolver; |
|
78 |
|
79 /* |
|
80 * DRM helper. |
|
81 * Own |
|
82 */ |
|
83 CDRMHelper* iDRMHelper; |
|
84 |
|
85 /* |
|
86 * Mms creation mode |
|
87 */ |
|
88 TInt iCreationMode; |
|
89 |
|
90 }; |
|
91 #endif //MMS_INSERT_CHECK_OPERATION_H |
|