37
|
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: This file contains the implementation of CPEServiceHandling class
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#include <mpephonemodelinternal.h>
|
|
20 |
#include <mpedatastore.h>
|
|
21 |
#include <pevirtualengine.h>
|
|
22 |
#include <e32debug.h>
|
|
23 |
|
|
24 |
#include "talogger.h"
|
|
25 |
#include "cpeservicehandling.h"
|
|
26 |
|
|
27 |
// ======== MEMBER FUNCTIONS ========
|
|
28 |
|
|
29 |
// ---------------------------------------------------------------------------
|
|
30 |
// Constructor
|
|
31 |
// ---------------------------------------------------------------------------
|
|
32 |
//
|
|
33 |
CPEServiceHandling::CPEServiceHandling( MPEPhoneModelInternal& aModel )
|
|
34 |
: iModel( aModel )
|
|
35 |
{
|
|
36 |
TEFLOGSTRING( KTAOBJECT, "PE CPEServiceHandling::CPEServiceHandling" );
|
|
37 |
}
|
|
38 |
|
|
39 |
// ---------------------------------------------------------------------------
|
|
40 |
// Constructor
|
|
41 |
// ---------------------------------------------------------------------------
|
|
42 |
//
|
|
43 |
void CPEServiceHandling::ConstructL()
|
|
44 |
{
|
|
45 |
TEFLOGSTRING( KTAOBJECT, "PE CPEServiceHandling::ConstructL" );
|
|
46 |
}
|
|
47 |
|
|
48 |
// ---------------------------------------------------------------------------
|
|
49 |
// Constructor
|
|
50 |
// ---------------------------------------------------------------------------
|
|
51 |
//
|
|
52 |
EXPORT_C CPEServiceHandling* CPEServiceHandling::NewL( MPEPhoneModelInternal& aModel )
|
|
53 |
{
|
|
54 |
CPEServiceHandling* self = CPEServiceHandling::NewLC(aModel);
|
|
55 |
CleanupStack::Pop( self );
|
|
56 |
return self;
|
|
57 |
}
|
|
58 |
|
|
59 |
// ---------------------------------------------------------------------------
|
|
60 |
// Constructor
|
|
61 |
// ---------------------------------------------------------------------------
|
|
62 |
//
|
|
63 |
EXPORT_C CPEServiceHandling* CPEServiceHandling::NewLC( MPEPhoneModelInternal& aModel )
|
|
64 |
{
|
|
65 |
CPEServiceHandling* self = new( ELeave ) CPEServiceHandling( aModel );
|
|
66 |
CleanupStack::PushL( self );
|
|
67 |
self->ConstructL();
|
|
68 |
return self;
|
|
69 |
}
|
|
70 |
|
|
71 |
// ---------------------------------------------------------------------------
|
|
72 |
// Destructor
|
|
73 |
// ---------------------------------------------------------------------------
|
|
74 |
//
|
|
75 |
EXPORT_C CPEServiceHandling::~CPEServiceHandling()
|
|
76 |
{
|
|
77 |
TEFLOGSTRING( KTAOBJECT, "PE CPEServiceHandling::~CPEServiceHandling" );
|
|
78 |
}
|
|
79 |
|
|
80 |
// ---------------------------------------------------------------------------
|
|
81 |
// CPEServiceHandling::EnableService
|
|
82 |
// ---------------------------------------------------------------------------
|
|
83 |
//
|
|
84 |
void CPEServiceHandling::EnableServiceL( TInt /*aServiceId*/ )
|
|
85 |
{
|
|
86 |
TEFLOGSTRING( KTAREQIN, "PE CPEServiceHandling::EnableServiceL" );
|
|
87 |
User::LeaveIfError( 0 );
|
|
88 |
iModel.SendMessage( MEngineMonitor::EPEMessageServiceEnabled );
|
|
89 |
}
|
|
90 |
|
|
91 |
// ---------------------------------------------------------------------------
|
|
92 |
// CPEServiceHandling::CancelServiceEnabling
|
|
93 |
// ---------------------------------------------------------------------------
|
|
94 |
//
|
|
95 |
void CPEServiceHandling::CancelServiceEnabling() const
|
|
96 |
{
|
|
97 |
TEFLOGSTRING( KTAREQIN, "PE CPEServiceHandling::CancelServiceEnabling" );
|
|
98 |
}
|
|
99 |
|
|
100 |
// -----------------------------------------------------------------------------
|
|
101 |
// CPEServiceHandling::DisableService
|
|
102 |
// -----------------------------------------------------------------------------
|
|
103 |
//
|
|
104 |
void CPEServiceHandling::DisableService() const
|
|
105 |
{
|
|
106 |
TEFLOGSTRING( KTAREQIN, "PE CPEServiceHandling::DisableService" );
|
|
107 |
}
|
|
108 |
|
|
109 |
// End of File
|