|
1 // Copyright (c) 2001-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 // Simulator Phone Factory Class and DLL entry point |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalAll |
|
21 */ |
|
22 |
|
23 |
|
24 #ifndef __CSIMPHONEFACTORY_H__ |
|
25 #define __CSIMPHONEFACTORY_H__ |
|
26 |
|
27 #include "et_phone.h" |
|
28 |
|
29 /** |
|
30 * This class 'CSimPhoneFactory' is the Factory class for the Simulator TSY. |
|
31 * It has the primary role of creating the CPhoneBase-derived object 'CSimPhone' |
|
32 * (which mirrors the client side RPhone and RMobilePhone) and passing its pointer back to ETel. |
|
33 * |
|
34 * Once a client has opened a handle on the phone object (CSimPhone in this TSY), |
|
35 * they can then go on to create the objects such as line (CSimLine), |
|
36 * call (CSimCall) objects, sms (CSimSmsMessaging), packet (CSimPacketService) etc |
|
37 * |
|
38 * The client can then access all the other functionality in the TSY via these objects |
|
39 * |
|
40 */ |
|
41 |
|
42 class CSimPhoneFactory: public CPhoneFactoryBase |
|
43 { |
|
44 public: |
|
45 CSimPhoneFactory(); |
|
46 ~CSimPhoneFactory(); |
|
47 static CSimPhoneFactory* NewL(); |
|
48 |
|
49 virtual CPhoneBase* NewPhoneL(const TDesC& aName); |
|
50 virtual TInt EnumeratePhones(); |
|
51 virtual TInt GetPhoneInfo(const TInt aIndex, RTelServer::TPhoneInfo& aPhoneInfo); |
|
52 virtual TBool IsSupported(const TInt aMixin); |
|
53 private: |
|
54 CPhoneBase* iPhoneBaseRef; |
|
55 TBool CheckSupportAgainstVersion(const TInt& aVersion); |
|
56 }; |
|
57 |
|
58 #endif |