author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 24 Nov 2009 08:56:33 +0200 | |
changeset 33 | 50974a8b132e |
parent 19 | 989d2f495d90 |
permissions | -rw-r--r-- |
19 | 1 |
/* |
2 |
* Copyright (c) 2002 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 the License "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: ?Description |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
||
20 |
||
21 |
// INCLUDE FILES |
|
22 |
#include <e32svr.h> |
|
23 |
#include <StifParser.h> |
|
24 |
//#include <SAPI_TEST\testprg.h> |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
25 |
#include <StifTestInterface.h> |
19 | 26 |
|
27 |
#include <msvids.h> |
|
28 |
#include"messageheader.h" |
|
29 |
#include "messagingservice.h" |
|
30 |
////#include <senduiconsts.h> |
|
31 |
||
32 |
||
33 |
#include "messagenotificationtest.h" |
|
34 |
// ============================= LOCAL FUNCTIONS =============================== |
|
35 |
||
36 |
// ----------------------------------------------------------------------------- |
|
37 |
// ?function_name ?description. |
|
38 |
// ?description |
|
39 |
// Returns: ?value_1: ?description |
|
40 |
// ?value_n: ?description_line1 |
|
41 |
// ?description_line2 |
|
42 |
// ----------------------------------------------------------------------------- |
|
43 |
// |
|
44 |
/* |
|
45 |
?type ?function_name( |
|
46 |
?arg_type arg, // ?description |
|
47 |
?arg_type arg) // ?description |
|
48 |
{ |
|
49 |
||
50 |
?code // ?comment |
|
51 |
||
52 |
// ?comment |
|
53 |
?code |
|
54 |
} |
|
55 |
*/ |
|
56 |
||
57 |
// ============================ MEMBER FUNCTIONS =============================== |
|
58 |
||
59 |
// ----------------------------------------------------------------------------- |
|
60 |
// CTLocTest::Delete |
|
61 |
// Delete here all resources allocated and opened from test methods. |
|
62 |
// Called from destructor. |
|
63 |
// ----------------------------------------------------------------------------- |
|
64 |
// |
|
65 |
void CTMessageNotificationTest::Delete() |
|
66 |
{ |
|
67 |
||
68 |
} |
|
69 |
||
70 |
// ----------------------------------------------------------------------------- |
|
71 |
// CTLocTest::RunMethodL |
|
72 |
// Run specified method. Contains also table of test mothods and their names. |
|
73 |
// ----------------------------------------------------------------------------- |
|
74 |
// |
|
75 |
TInt CTMessageNotificationTest::RunMethodL( |
|
76 |
CStifItemParser& aItem ) |
|
77 |
{ |
|
78 |
||
79 |
static TStifFunctionInfo const KFunctions[] = |
|
80 |
{ |
|
81 |
// Copy this line for every implemented function. |
|
82 |
// First string is the function name used in TestScripter script file. |
|
83 |
// Second is the actual implementation member function. |
|
84 |
//TRY( "SendMessage", CTMessageNotificationTest::SendMessage ), |
|
85 |
||
86 |
ENTRY( "MessageNotification", CTMessageNotificationTest::MessageNotificationSms), |
|
87 |
||
88 |
}; |
|
89 |
||
90 |
const TInt count = sizeof( KFunctions ) / |
|
91 |
sizeof( TStifFunctionInfo ); |
|
92 |
||
93 |
return RunInternalL( KFunctions, count, aItem ); |
|
94 |
||
95 |
} |
|
96 |
||
97 |
||
98 |
||
99 |
||
100 |
||
101 |
TInt CTMessageNotificationTest::MessageNotificationSms(CStifItemParser& /*aItem*/) |
|
102 |
{ |
|
103 |
int ret=0; |
|
104 |
ret = ReqNotification(0, NULL); |
|
105 |
||
106 |
if(ret==0) |
|
107 |
return KErrNone; |
|
108 |
else |
|
109 |
return KErrGeneral; |
|
110 |
||
111 |
||
112 |
} |