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: Implements sapievent class.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#include <e32base.h>
|
|
20 |
#include "loggingcallbackslot.h"
|
|
21 |
#include "loggingasyncservice.h"
|
|
22 |
|
|
23 |
/**
|
|
24 |
* Default Destructor
|
|
25 |
*/
|
|
26 |
|
|
27 |
CCallbackSlot :: ~CCallbackSlot()
|
|
28 |
{
|
|
29 |
if(iActive->IsAdded())
|
|
30 |
{
|
|
31 |
iActive->Deque() ;
|
|
32 |
}
|
|
33 |
delete iActive ;
|
|
34 |
}
|
|
35 |
|
|
36 |
/**
|
|
37 |
*Two phased constructor implementation
|
|
38 |
*/
|
|
39 |
EXPORT_C CCallbackSlot* CCallbackSlot :: NewL()
|
|
40 |
{
|
|
41 |
CCallbackSlot* self = CCallbackSlot::NewLC();
|
|
42 |
CleanupStack::Pop(self);
|
|
43 |
return self;
|
|
44 |
}
|
|
45 |
|
|
46 |
/**
|
|
47 |
* Two phased constructor implementation
|
|
48 |
*/
|
|
49 |
CCallbackSlot* CCallbackSlot :: NewLC()
|
|
50 |
{
|
|
51 |
CCallbackSlot* self = new (ELeave) CCallbackSlot();
|
|
52 |
CleanupStack::PushL(self);
|
|
53 |
return self;
|
|
54 |
}
|