66
|
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: The header file for CClkUiClkSrvListener class.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef __CLKUI_CLKSRV_LISTENER_H__
|
|
19 |
#define __CLKUI_CLKSRV_LISTENER_H__
|
|
20 |
|
|
21 |
// System includes
|
|
22 |
|
|
23 |
// User includes
|
|
24 |
#include "clkuilistenerbase.h"
|
|
25 |
#include "clkuiclksrvmodel.h"
|
|
26 |
#include "clockserverclt.h"
|
|
27 |
|
|
28 |
// Forward declarations
|
|
29 |
|
|
30 |
// Class declaration
|
|
31 |
/**
|
|
32 |
* @class CClkUiClkSrvListener
|
|
33 |
* @brief The listener class for clockserver interface.
|
|
34 |
* @dll clkuimodel.dll
|
|
35 |
*/
|
|
36 |
class CClkUiClkSrvListener : public CClkUiMdlListenerBase
|
|
37 |
{
|
|
38 |
public: // Constructor.
|
|
39 |
|
|
40 |
/**
|
|
41 |
* @brief C++ default constructor.
|
|
42 |
* @param aClkSrvSes The clockserver session.
|
|
43 |
* @param aClkSrvModel Pointer to the clksrv model.
|
|
44 |
* @param aWhatChanged
|
|
45 |
* @param aWhoChanged
|
|
46 |
* @param aListenerPriority The active object priority.
|
|
47 |
*/
|
|
48 |
CClkUiClkSrvListener( RClkSrvInterface& aClkSrvSes, CClkUiClkSrvModel& aClkSrvModel, TInt& aWhatChanged, TInt& aWhoChanged, TInt aListenerPriority );
|
|
49 |
|
|
50 |
/**
|
|
51 |
* Destructor
|
|
52 |
*/
|
|
53 |
~CClkUiClkSrvListener();
|
|
54 |
|
|
55 |
public: // Functions from base classes.
|
|
56 |
|
|
57 |
/**
|
|
58 |
* @brief from CClkUiMdlListenerBase. Starts the listener activity.
|
|
59 |
*/
|
|
60 |
void DoStart();
|
|
61 |
|
|
62 |
/**
|
|
63 |
* @brief from CClkUiMdlListenerBase. Cancels and stops the listener activity.
|
|
64 |
*/
|
|
65 |
void DoCancel();
|
|
66 |
|
|
67 |
private: // Data
|
|
68 |
|
|
69 |
/**
|
|
70 |
* @var iClkSrvSes
|
|
71 |
* @brief Reference to the clockserver session.
|
|
72 |
*/
|
|
73 |
RClkSrvInterface iClkSrvSes;
|
|
74 |
|
|
75 |
/**
|
|
76 |
* @var iWhatChanged
|
|
77 |
* @brief Will be filled by clockserver when providing a notification.
|
|
78 |
*/
|
|
79 |
TInt32 iWhatChanged;
|
|
80 |
|
|
81 |
/**
|
|
82 |
* @var iWhoChanged
|
|
83 |
* @brief Will be filled by clockserver when providing a notification.
|
|
84 |
*/
|
|
85 |
TInt32 iWhoChanged;
|
|
86 |
};
|
|
87 |
|
|
88 |
#endif // __CLKUI_CLKSRV_LISTENER_H__
|
|
89 |
|
|
90 |
// End of file
|