5
|
1 |
/*
|
|
2 |
* Copyright (c) 2006-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: ?Description
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#include "storeasyncinfo.h"
|
|
20 |
|
|
21 |
|
|
22 |
/*
|
|
23 |
-----------------------------------------------------------------------------
|
|
24 |
CStoreAsyncInfo::CStoreAsyncInfo()
|
|
25 |
Description : Constructor
|
|
26 |
Return values : N/A
|
|
27 |
-----------------------------------------------------------------------------
|
|
28 |
*/
|
|
29 |
CStoreAsyncInfo :: CStoreAsyncInfo( TAsyncType atype,
|
|
30 |
TInt32 aTransactionId,
|
|
31 |
CSensorCallback* aCallback,
|
|
32 |
TUint aChannelId )
|
|
33 |
:ichnlId( aChannelId ),
|
|
34 |
iTransactionId( aTransactionId ),
|
|
35 |
iAsyncType( atype ),
|
|
36 |
iCallback( aCallback )
|
|
37 |
{
|
|
38 |
}
|
|
39 |
|
|
40 |
|
|
41 |
/*
|
|
42 |
-----------------------------------------------------------------------------
|
|
43 |
void CStoreAsyncInfo::ConstructL()
|
|
44 |
Description : Symbian 2nd phase constructor can leave.
|
|
45 |
Return values : N/A
|
|
46 |
-----------------------------------------------------------------------------
|
|
47 |
*/
|
|
48 |
void CStoreAsyncInfo :: ConstructL()
|
|
49 |
{
|
|
50 |
}
|
|
51 |
|
|
52 |
/*
|
|
53 |
-----------------------------------------------------------------------------
|
|
54 |
CStoreAsyncInfo* CStoreAsyncInfo::NewL()
|
|
55 |
Description : Two-phased constructor.
|
|
56 |
Return values : CSensorInterface object pointer
|
|
57 |
|
|
58 |
-----------------------------------------------------------------------------
|
|
59 |
*/
|
|
60 |
CStoreAsyncInfo* CStoreAsyncInfo::NewL( TAsyncType aType,
|
|
61 |
TInt32 aTransactionId,
|
|
62 |
CSensorCallback* aCallback,
|
|
63 |
TUint aChnlId )
|
|
64 |
{
|
|
65 |
CStoreAsyncInfo* self = new ( ELeave ) CStoreAsyncInfo( aType,
|
|
66 |
aTransactionId,
|
|
67 |
aCallback,
|
|
68 |
aChnlId );
|
|
69 |
CleanupStack::PushL( self );
|
|
70 |
self->ConstructL();
|
|
71 |
CleanupStack::Pop( self );
|
|
72 |
return self;
|
|
73 |
}
|
|
74 |
|
|
75 |
/*
|
|
76 |
-----------------------------------------------------------------------------
|
|
77 |
CStoreAsyncInfo::~CStoreAsyncInfo()
|
|
78 |
Description : Destructor, free allocated resources
|
|
79 |
Return values : N/A
|
|
80 |
-----------------------------------------------------------------------------
|
|
81 |
*/
|
|
82 |
CStoreAsyncInfo::~CStoreAsyncInfo()
|
|
83 |
{
|
|
84 |
}
|
|
85 |
|