|
1 /* |
|
2 * Copyright (c) 2008-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: CCFServiceBase class declaration. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CFSERVICEBASE_H |
|
20 #define CFSERVICEBASE_H |
|
21 |
|
22 // SYSTEM INCLUDE FILES |
|
23 #include <e32base.h> |
|
24 |
|
25 // USER INCLUDE FILES |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 |
|
29 // DATA TYPES |
|
30 |
|
31 // CLASS DECLARATION |
|
32 class RCFClientSession; |
|
33 class MCFListener; |
|
34 |
|
35 /** |
|
36 * Base class for all Context Framework client services. |
|
37 * These services includes context, action and script services. |
|
38 * |
|
39 * @lib cfclient.lib |
|
40 * @since S60 5.0 |
|
41 */ |
|
42 NONSHARABLE_CLASS( CCFServiceBase ): public CBase |
|
43 { |
|
44 public: |
|
45 |
|
46 // Service type |
|
47 enum TCFServiceId |
|
48 { |
|
49 ECFContextService, |
|
50 ECFActionService, |
|
51 ECFScriptService, |
|
52 ECFNumOfServices |
|
53 }; |
|
54 |
|
55 public: |
|
56 |
|
57 /** |
|
58 * C++ destructor. |
|
59 */ |
|
60 virtual ~CCFServiceBase(); |
|
61 |
|
62 public: |
|
63 |
|
64 /** |
|
65 * Service ID. |
|
66 * |
|
67 * @since S60 5.0 |
|
68 * @param None. |
|
69 * @return TCFServiceId |
|
70 */ |
|
71 TCFServiceId Id() const; |
|
72 |
|
73 protected: |
|
74 |
|
75 CCFServiceBase( TCFServiceId aId, |
|
76 RCFClientSession& aSession, |
|
77 MCFListener& aListener ); |
|
78 |
|
79 protected: // Data |
|
80 |
|
81 /** Session handle */ |
|
82 RCFClientSession& iSession; |
|
83 |
|
84 /** Reference to client */ |
|
85 MCFListener& iListener; |
|
86 |
|
87 private: // Data |
|
88 |
|
89 /** Service ID */ |
|
90 TCFServiceId iId; |
|
91 }; |
|
92 |
|
93 #endif // CFSERVICEBASE_H |
|
94 |