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: |
|
15 */ |
|
16 |
|
17 #ifndef TESTUNIDATAMODELMMSPLUGIN_H_ |
|
18 #define TESTUNIDATAMODELMMSPLUGIN_H_ |
|
19 |
|
20 #ifdef BUILD_TEST_DLL |
|
21 #define TEST_EXPORT Q_DECL_EXPORT |
|
22 #else |
|
23 #define TEST_EXPORT Q_DECL_IMPORT |
|
24 #endif |
|
25 |
|
26 #include <QObject> |
|
27 #include <txtetext.h> |
|
28 #include <txtrich.h> |
|
29 #include <mtclreg.h> |
|
30 #include <mtclbase.h> |
|
31 #include <msvids.h> |
|
32 #include <QDateTime> |
|
33 |
|
34 class UniDataModelPluginInterface; |
|
35 class UniDataModelLoader; |
|
36 class TestObserverMMS; |
|
37 class CMmsClientMtm; |
|
38 class CMmsHeaders; |
|
39 class CMmsSettings; |
|
40 |
|
41 class ConvergedMessage; |
|
42 class RFs; |
|
43 |
|
44 class TEST_EXPORT TestUniDataModelMMSPlugin : public QObject |
|
45 { |
|
46 Q_OBJECT |
|
47 |
|
48 private slots: |
|
49 //called by frame work. |
|
50 void initTestCase();//called before the first testfunction is executed. |
|
51 void cleanupTestCase();//called after the last testfunction was executed. |
|
52 void init();//called before each testfunction is executed. |
|
53 void cleanup();//called after every testfunction. |
|
54 void testInboxMessage(); |
|
55 void testOutboxMessage(); |
|
56 void testInboxImageMMSMessage(); |
|
57 |
|
58 private: |
|
59 void createMMS(TMsvId pId, TBool subjectField); |
|
60 void createInboxImageMMS(); |
|
61 |
|
62 private: |
|
63 UniDataModelPluginInterface* pluginInterface; |
|
64 TestObserverMMS* iObserver; |
|
65 CMsvSession* iMSession; |
|
66 CClientMtmRegistry* iMtmReg; |
|
67 CMmsClientMtm* iMmsClientMtm; |
|
68 TMsvId iMessageId; |
|
69 RArray<TMsvId> idArr; |
|
70 UniDataModelLoader* pluginLoader; |
|
71 QDateTime retTimeStamp ; |
|
72 RFs iFs; |
|
73 CMmsSettings* iSettings; |
|
74 CMmsHeaders* iMmsHeaders; |
|
75 TMsvId iServiceId; |
|
76 TInt msgSize; |
|
77 }; |
|
78 |
|
79 class TestObserverMMS : public MMsvSessionObserver |
|
80 { |
|
81 public: |
|
82 void HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, |
|
83 TAny* aArg3); |
|
84 }; |
|
85 |
|
86 #endif /* TESTUNIDATAMODELMMSPLUGIN_H_ */ |
|