51
|
1 |
/*
|
|
2 |
* Copyright (c) 2007 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: Presence Service Connection globals holder
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef FEATUREPLUGINHOLDER_H
|
|
19 |
#define FEATUREPLUGINHOLDER_H
|
|
20 |
|
|
21 |
class MApiDataObjFactoryAccessor;
|
|
22 |
|
|
23 |
/**
|
|
24 |
* Static helper class for accessing the Feature Plug-in datamodel internal interfaces.
|
|
25 |
*
|
|
26 |
* @lib ximpdatamodel.dll
|
|
27 |
* @since S60 v5.0
|
|
28 |
*/
|
|
29 |
class FeaturePluginHolder
|
|
30 |
{
|
|
31 |
public:
|
|
32 |
|
|
33 |
/**
|
|
34 |
* Initializes the TLS where the pointers to the different accessor objects
|
|
35 |
* from feature plug-ins are stores. The TLS is reference counted.
|
|
36 |
*
|
|
37 |
*
|
|
38 |
*/
|
|
39 |
IMPORT_C static void InitializeL();
|
|
40 |
|
|
41 |
/**
|
|
42 |
* Returns the API Data Model Object Factory Accessor from the presence feature plug-in.
|
|
43 |
*
|
|
44 |
*
|
|
45 |
*/
|
|
46 |
IMPORT_C static MApiDataObjFactoryAccessor* PresenceObjFactoryAccessor( );
|
|
47 |
|
|
48 |
/**
|
|
49 |
* Cleans the TLS, reference counted.
|
|
50 |
*
|
|
51 |
*
|
|
52 |
*/
|
|
53 |
IMPORT_C static void Release();
|
|
54 |
|
|
55 |
/**
|
|
56 |
* Returns the API Data Model Object Factory Accessor count
|
|
57 |
*
|
|
58 |
*
|
|
59 |
*/
|
|
60 |
IMPORT_C static TInt AccessorCount();
|
|
61 |
|
|
62 |
/**
|
|
63 |
* Returns the API Data Model Object Factory Accessor from given index
|
|
64 |
*
|
|
65 |
*
|
|
66 |
*/
|
|
67 |
IMPORT_C static MApiDataObjFactoryAccessor* Accessor(TInt index) ;
|
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
private:
|
|
72 |
|
|
73 |
/**
|
|
74 |
* Loads all ecom accessor
|
|
75 |
*
|
|
76 |
*
|
|
77 |
*/
|
|
78 |
void static LoadAccessorPluginsL() ;
|
|
79 |
};
|
|
80 |
|
|
81 |
#endif // FEATUREPLUGINHOLDER_H
|
|
82 |
|
|
83 |
|