24
|
1 |
// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
// @file
|
|
17 |
// @test
|
|
18 |
|
|
19 |
#ifndef SMSSTACKBASETESTSERVER_H
|
|
20 |
#define SMSSTACKBASETESTSERVER_H
|
|
21 |
|
|
22 |
#include <test\testexecuteserverbase.h>
|
|
23 |
#include <etelmm.h>
|
|
24 |
|
|
25 |
class CSmsStackTestServer : public CTestServer
|
|
26 |
/**
|
|
27 |
Describes the base test server for the SMS stack test harness.
|
|
28 |
*/
|
|
29 |
{
|
|
30 |
public:
|
|
31 |
IMPORT_C virtual ~CSmsStackTestServer();
|
|
32 |
|
|
33 |
protected:
|
|
34 |
IMPORT_C CSmsStackTestServer();
|
|
35 |
IMPORT_C void InitializeTsyAndPhonesL();
|
|
36 |
|
|
37 |
private:
|
|
38 |
void GetTsyNamesFromCommsdatL(RArray<TName>& aTsyNameList);
|
|
39 |
void LoadTsyL(RTelServer& aServer, RPhone& aPhone, const TDesC& aTsyName);
|
|
40 |
|
|
41 |
private:
|
|
42 |
/**
|
|
43 |
* SMS stack first interrogates ETel server to get information about available SIMs,
|
|
44 |
* and then opens phone sessions by using the retrieved available SIM info.
|
|
45 |
* ETel returns the SIM info based on the loaded TSYs. If there is no connection to a phone,
|
|
46 |
* ETel unloads the corresponding TSY. To keep TSYs required by SMS tests loaded, the test code
|
|
47 |
* opens connection to the required phones and keep them alive throughout all test steps.
|
|
48 |
* In a real device, this is done as a part of the system start.
|
|
49 |
*/
|
|
50 |
RTelServer iTelServer;
|
|
51 |
RMobilePhone iPhone1;
|
|
52 |
RMobilePhone iPhone2;
|
|
53 |
};
|
|
54 |
|
|
55 |
#endif // SMSSTACKBASETESTSERVER_H
|