24
|
1 |
// Copyright (c) 1997-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 |
@internalAll */
|
|
18 |
#ifndef __DSTATICCALL_H
|
|
19 |
#define __DSTATICCALL_H
|
|
20 |
|
|
21 |
#include <e32base.h>
|
|
22 |
#include "ET_PHONE.H"
|
|
23 |
#include "../DSTD/ACQUIRE.H"
|
|
24 |
|
|
25 |
//
|
|
26 |
// CCallStaticCall
|
|
27 |
//
|
|
28 |
class CCallStaticCall : public CCallDummyBase
|
|
29 |
/**
|
|
30 |
@internalComponent
|
|
31 |
*/
|
|
32 |
{
|
|
33 |
public:
|
|
34 |
static CCallStaticCall* NewL(CPhoneFactoryDummyBase* aFac);
|
|
35 |
CCallStaticCall(CPhoneFactoryDummyBase* aFac);
|
|
36 |
void ConstructL();
|
|
37 |
~CCallStaticCall();
|
|
38 |
public:
|
|
39 |
virtual TInt ExtFunc(const TTsyReqHandle aTsyReqHandle,const TInt aIpc,const TDataPackage&);
|
|
40 |
virtual CTelObject* OpenNewObjectByNameL(const TDesC& aName);
|
|
41 |
virtual CTelObject* OpenNewObjectL(TDes&);
|
|
42 |
};
|
|
43 |
|
|
44 |
//
|
|
45 |
// CLineStaticCall
|
|
46 |
//
|
|
47 |
class CLineStaticCall : public CLineDummyBase
|
|
48 |
/**
|
|
49 |
@internalComponent
|
|
50 |
*/
|
|
51 |
{
|
|
52 |
public:
|
|
53 |
static CLineStaticCall* NewL(const TDesC& aName,CPhoneFactoryDummyBase* aFac);
|
|
54 |
CLineStaticCall(CPhoneFactoryDummyBase* aFac);
|
|
55 |
void ConstructL();
|
|
56 |
~CLineStaticCall();
|
|
57 |
// virtual functions
|
|
58 |
TInt EnumerateCall(const TTsyReqHandle aUid,TInt* aCount);
|
|
59 |
virtual TInt GetCallInfo(const TTsyReqHandle aTsyReqHandle,TCallInfoIndex*);
|
|
60 |
virtual TInt ExtFunc(const TTsyReqHandle aTsyReqHandle,const TInt aIpc,const TDataPackage&);
|
|
61 |
virtual CTelObject* OpenNewObjectByNameL(const TDesC& aName);
|
|
62 |
virtual CTelObject* OpenNewObjectL(TDes&);
|
|
63 |
public:
|
|
64 |
CCallStaticCall* iCall;
|
|
65 |
};
|
|
66 |
|
|
67 |
//
|
|
68 |
// CPhoneStaticCall
|
|
69 |
//
|
|
70 |
class CPhoneStaticCall : public CPhoneDummyBase
|
|
71 |
/**
|
|
72 |
@internalComponent
|
|
73 |
*/
|
|
74 |
{
|
|
75 |
public:
|
|
76 |
static CPhoneStaticCall* NewL(CPhoneFactoryDummyBase* aFac);
|
|
77 |
private:
|
|
78 |
CPhoneStaticCall(CPhoneFactoryDummyBase* aFac);
|
|
79 |
~CPhoneStaticCall();
|
|
80 |
void ConstructL();
|
|
81 |
virtual TInt EnumerateLines(const TTsyReqHandle aTsyReqHandle,TInt*);
|
|
82 |
virtual TInt GetLineInfo(const TTsyReqHandle aTsyReqHandle,TLineInfoIndex*);
|
|
83 |
virtual TInt ExtFunc(const TTsyReqHandle aTsyReqHandle,const TInt aIpc,const TDataPackage&);
|
|
84 |
virtual CTelObject* OpenNewObjectByNameL(const TDesC& aName);
|
|
85 |
virtual CTelObject* OpenNewObjectL(TDes&);
|
|
86 |
virtual void Init();
|
|
87 |
private:
|
|
88 |
TTsyReqHandle iNotifyPhoneDisappearedUid;
|
|
89 |
};
|
|
90 |
|
|
91 |
//
|
|
92 |
// CPhoneFactoryDummyBase object
|
|
93 |
//
|
|
94 |
class CLibUnloader;
|
|
95 |
class CPhoneFactoryStaticCall: public CPhoneFactoryDummyBase
|
|
96 |
/**
|
|
97 |
@internalComponent
|
|
98 |
*/
|
|
99 |
{
|
|
100 |
public:
|
|
101 |
static CPhoneFactoryStaticCall* NewL();
|
|
102 |
CPhoneFactoryStaticCall();
|
|
103 |
~CPhoneFactoryStaticCall();
|
|
104 |
virtual CPhoneBase* NewPhoneL(const TDesC& aName);
|
|
105 |
virtual TInt GetPhoneInfo(const TInt aIndex,RTelServer::TPhoneInfo& aPhoneInfo);
|
|
106 |
virtual TInt EnumeratePhones();
|
|
107 |
private:
|
|
108 |
RSemaphore iSemaphore;
|
|
109 |
};
|
|
110 |
|
|
111 |
#endif
|