5
|
1 |
/*
|
|
2 |
* Copyright (c) 2005-2006 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: CSysInfoProvider class
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef __SYSINFOPROVIDER_H__
|
|
20 |
#define __SYSINFOPROVIDER_H__
|
|
21 |
|
|
22 |
// INCLUDES
|
|
23 |
#include <liwserviceifbase.h>
|
|
24 |
|
|
25 |
/**
|
|
26 |
* CSysInfoProvider
|
|
27 |
* This class inherits from CAiwServiceIfBase and implements the
|
|
28 |
* InitialiseL( MLiwNotifyCallback& aFrameworkCallback,
|
|
29 |
* const RCriteriaArray& aInterest) and
|
|
30 |
* HandleServiceCmdL( const TInt& aCmdId,
|
|
31 |
* const CLiwGenericParamList& aInParamList,
|
|
32 |
* CLiwGenericParamList& aOutParamList, TUint aCmdOptions = 0,
|
|
33 |
* const MLiwNotifyCallback* aCallback = NULL) functions.
|
|
34 |
* It constructs and returns the interface to the client.
|
|
35 |
*/
|
|
36 |
// CLASS DECLARATION
|
|
37 |
class CSysInfoProvider: public CLiwServiceIfBase
|
|
38 |
{
|
|
39 |
public://New Methods
|
|
40 |
|
|
41 |
/**
|
|
42 |
* NewL.
|
|
43 |
* Two-phased constructor.
|
|
44 |
* Create a CSysInfoProvider object.
|
|
45 |
* @return a pointer to the created instance of CSysInfoProvider.
|
|
46 |
*/
|
|
47 |
static CSysInfoProvider* NewL();
|
|
48 |
|
|
49 |
/**
|
|
50 |
* ~CSysInfoProvider
|
|
51 |
* Destructor.
|
|
52 |
*/
|
|
53 |
~CSysInfoProvider();
|
|
54 |
|
|
55 |
public: // from CAiwServiceIfBase
|
|
56 |
|
|
57 |
// Called by the AIW framework to initialise provider with necessary information
|
|
58 |
// from the Service Handler. This method is called when the consumer makes
|
|
59 |
// the attach operation.
|
|
60 |
void InitialiseL( MLiwNotifyCallback& aFrameworkCallback,
|
|
61 |
const RCriteriaArray& aInterest);
|
|
62 |
|
|
63 |
//Executes generic service commands included in criteria.
|
|
64 |
void HandleServiceCmdL( const TInt& aCmdId,
|
|
65 |
const CLiwGenericParamList& aInParamList,
|
|
66 |
CLiwGenericParamList& aOutParamList, TUint aCmdOptions = 0,
|
|
67 |
const MLiwNotifyCallback* aCallback = NULL);
|
|
68 |
|
|
69 |
private:// Constructors
|
|
70 |
|
|
71 |
/**
|
|
72 |
* CSysInfoProvider.
|
|
73 |
* C++ default constructor.
|
|
74 |
*/
|
|
75 |
CSysInfoProvider();
|
|
76 |
};
|
|
77 |
#endif //__SYSINFOPROVIDER_H__ |