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: This is the source file for the CClkUiClkSrvListener class.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
// System includes
|
|
19 |
|
|
20 |
// User includes
|
|
21 |
#include "clkuiclksrvlistener.h"
|
|
22 |
#include "clockserverclt.h"
|
|
23 |
#include "clkuiclksrvmodel.h"
|
|
24 |
#include "clkuilistenerbase.h"
|
|
25 |
|
|
26 |
// Constants
|
|
27 |
|
|
28 |
// ---------------------------------------------------------
|
|
29 |
// CClkUiClkSrvListener::CClkUiClkSrvListener
|
|
30 |
// rest of the details are commented in the header
|
|
31 |
// ---------------------------------------------------------
|
|
32 |
//
|
|
33 |
CClkUiClkSrvListener::CClkUiClkSrvListener( RClkSrvInterface& aClkSrvSes,
|
|
34 |
CClkUiClkSrvModel& aClkSrvModel,
|
|
35 |
TInt& aWhatChanged,
|
|
36 |
TInt& aWhoChanged,
|
|
37 |
TInt aListenerPriority )
|
|
38 |
: CClkUiMdlListenerBase( aClkSrvModel, aListenerPriority )
|
|
39 |
{
|
|
40 |
iClkSrvSes = aClkSrvSes;
|
|
41 |
iWhatChanged = aWhatChanged;
|
|
42 |
iWhoChanged = aWhoChanged;
|
|
43 |
}
|
|
44 |
|
|
45 |
// ---------------------------------------------------------
|
|
46 |
// CClkUiClkSrvListener::~CClkUiClkSrvListener
|
|
47 |
// rest of the details are commented in the header
|
|
48 |
// ---------------------------------------------------------
|
|
49 |
//
|
|
50 |
CClkUiClkSrvListener::~CClkUiClkSrvListener()
|
|
51 |
{
|
|
52 |
Cancel();
|
|
53 |
}
|
|
54 |
|
|
55 |
// ---------------------------------------------------------
|
|
56 |
// CClkUiClkSrvListener::DoStart
|
|
57 |
// rest of the details are commented in the header
|
|
58 |
// ---------------------------------------------------------
|
|
59 |
//
|
|
60 |
void CClkUiClkSrvListener::DoStart()
|
|
61 |
{
|
|
62 |
iClkSrvSes.NotifyOnChange( iWhatChanged, iWhoChanged, iStatus );
|
|
63 |
}
|
|
64 |
|
|
65 |
// ---------------------------------------------------------
|
|
66 |
// CClkUiClkSrvListener::DoStart
|
|
67 |
// rest of the details are commented in the header
|
|
68 |
// ---------------------------------------------------------
|
|
69 |
//
|
|
70 |
void CClkUiClkSrvListener::DoCancel()
|
|
71 |
{
|
|
72 |
iClkSrvSes.NotifyOnChangeCancel();
|
|
73 |
}
|
|
74 |
|
|
75 |
// End of file
|