1 /* |
|
2 * Copyright (c) 2008 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 "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: factory class for Engine component |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MVIMPSTENGINEFACTORY_H |
|
20 #define MVIMPSTENGINEFACTORY_H |
|
21 #include <e32def.h> |
|
22 |
|
23 //FORWARD DECLARATION |
|
24 class MVIMPSTEngine; |
|
25 |
|
26 //CLASS DECLARATION |
|
27 /** |
|
28 * |
|
29 * This class list the M-Class for Engine factory |
|
30 * |
|
31 * @lib vimpstengine.lib |
|
32 * @since S60 5.0 |
|
33 */ |
|
34 class MVIMPSTEngineFactory |
|
35 { |
|
36 |
|
37 public: |
|
38 |
|
39 /* |
|
40 * Fills the RPointerArray passed as a Param |
|
41 * with engine items for each service |
|
42 * The Owenership of the ptr is not transferred to the caller |
|
43 * @param - RPointerArray which upon completion of this function |
|
44 * will hold the pointers to each engine instance created for |
|
45 * different services |
|
46 */ |
|
47 virtual void GetServiceEnginePtr( |
|
48 RPointerArray<MVIMPSTEngine>& serviceIdArray) const = 0; |
|
49 /** |
|
50 * FindService finds if a given serviceid is installed. |
|
51 * @param aServiceId service id |
|
52 * @return TInt index of the service else retunr KErrNotFOund. |
|
53 **/ |
|
54 virtual TInt FindService( |
|
55 TUint aServiceId ) const = 0; |
|
56 |
|
57 |
|
58 /** |
|
59 * ~CVIMPSTEngineFactory |
|
60 * dont call delete |
|
61 */ |
|
62 virtual ~MVIMPSTEngineFactory() |
|
63 { |
|
64 |
|
65 } |
|
66 |
|
67 }; |
|
68 |
|
69 #endif //MVIMPSTENGINEFACTORY_H |
|