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 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: STIF testclass declaration* |
|
15 */ |
|
16 |
|
17 |
|
18 #ifndef VCXTESTSMCLIENT_H_ |
|
19 #define VCXTESTSMCLIENT_H_ |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32base.h> |
|
23 #include "MIptvServiceManagementClientObserver.h" |
|
24 |
|
25 // CONSTANTS |
|
26 |
|
27 // DATA TYPES |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CIptvServiceManagementClient; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 NONSHARABLE_CLASS(CVCXTestSmClient) : public CBase, public MIptvServiceManagementClientObserver |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Two-phased constructor. |
|
40 */ |
|
41 static CVCXTestSmClient* NewL(); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 virtual ~CVCXTestSmClient(); |
|
47 |
|
48 private: // New functions |
|
49 |
|
50 /** |
|
51 * C++ default constructor. |
|
52 */ |
|
53 CVCXTestSmClient(); |
|
54 |
|
55 /** |
|
56 * By default Symbian 2nd phase constructor is private. |
|
57 */ |
|
58 void ConstructL(); |
|
59 |
|
60 public: // New functions |
|
61 |
|
62 void GetServiceIdL( TUint32& aServiceId, const TDesC& aName ); |
|
63 void GetAnyServiceIdL( TUint32& aServiceId ); |
|
64 |
|
65 public: // Functions from base classes |
|
66 |
|
67 virtual void AddServiceResp(TRespStatus aRespStatus); |
|
68 virtual void UpdateServiceResp(TRespStatus aRespStatus); |
|
69 virtual void DeleteServiceResp(TRespStatus aRespStatus); |
|
70 virtual void GetServicesResp(TRespStatus aRespStatus, CDesC8ArraySeg* aServicesArray); |
|
71 virtual void GetUsedIapResp(TUint32 aIapId, |
|
72 const TDesC& aIapName, |
|
73 CIptvNetworkSelection::TConnectionPermission aConnectionPermission, |
|
74 TBool aWlanWhenGPRS, |
|
75 CIptvNetworkSelection::TRespStatus aRespStatus |
|
76 ); |
|
77 virtual void ServerShutdownResp(TRespStatus aRespStatus); |
|
78 virtual void HandleSmEvent(CIptvSmEvent& aEvent); |
|
79 |
|
80 private: // Data |
|
81 CIptvServiceManagementClient* iIptvServiceManagementClient; |
|
82 }; |
|
83 |
|
84 #endif /*VCXTESTSMCLIENT_H_*/ |
|
85 |
|
86 |
|