author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Thu, 17 Dec 2009 09:09:50 +0200 | |
changeset 26 | 5d0ec8b709be |
parent 23 | 50974a8b132e |
permissions | -rw-r--r-- |
5 | 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 the License "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: |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
#ifndef __MESSAGINGSERVICEHANDLER_H |
|
20 |
#define __MESSAGINGSERVICEHANDLER_H |
|
21 |
||
23
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
22 |
#include <liwcommon.h> |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
23 |
#include <liwserviceifbase.h> |
5 | 24 |
|
25 |
/** |
|
26 |
* Provides implementation to CLiwServiceIfBase interface. |
|
27 |
* |
|
28 |
**/ |
|
29 |
class CMessagingServiceHandler : public CLiwServiceIfBase |
|
30 |
{ |
|
31 |
public: |
|
32 |
static CMessagingServiceHandler* NewL(); |
|
33 |
||
34 |
||
35 |
// CLiwServiceIfBase member functions |
|
36 |
/** |
|
37 |
* Called by the LIW framework to initialise necessary information |
|
38 |
* from the Service Handler. This method is called when the consumer makes |
|
39 |
* the attach operation. |
|
40 |
* |
|
41 |
* @param aFrameworkCallback Framework provided callback for provider to send |
|
42 |
* events to framework. |
|
43 |
* @param aInterest List of criteria items which invoked the provider. |
|
44 |
*/ |
|
45 |
virtual void InitialiseL( |
|
46 |
MLiwNotifyCallback& aFrameworkCallback, |
|
47 |
const RCriteriaArray& aInterest); |
|
48 |
||
49 |
/** |
|
50 |
* Executes generic service commands included in criteria. |
|
51 |
* |
|
52 |
* @param aCmdId Command to be executed. |
|
53 |
* @param aInParamList Input parameters, can be an empty list. |
|
54 |
* @param aOutParamList Output parameters, can be an empty list. |
|
55 |
* @param aCmdOptions Options for the command, see KLiwOpt* in LiwCommon.hrh. |
|
56 |
* @param aCallback Callback for asynchronous command handling, parameter checking, etc. |
|
57 |
* @leave KErrArgument Callback is missing when required. |
|
58 |
* @leave KErrNotSupported No provider supports service. |
|
59 |
*/ |
|
60 |
virtual void HandleServiceCmdL( |
|
61 |
const TInt& aCmdId, |
|
62 |
const CLiwGenericParamList& aInParamList, |
|
63 |
CLiwGenericParamList& aOutParamList, |
|
64 |
TUint aCmdOptions = 0, |
|
65 |
const MLiwNotifyCallback* aCallback = NULL); |
|
66 |
||
67 |
private: |
|
68 |
/** |
|
69 |
* Constructor. |
|
70 |
*/ |
|
71 |
CMessagingServiceHandler(); |
|
72 |
||
73 |
}; |
|
74 |
||
75 |
#endif __MESSAGINGSERVICEHANDLER_H |