equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <memspy/api/memspyapiserver.h> |
|
19 #include <memspy/engine/memspyengine.h> |
|
20 #include <memspy/engine/memspyserverdata.h> |
|
21 |
|
22 EXPORT_C CMemSpyApiServer::~CMemSpyApiServer() |
|
23 { |
|
24 delete iData; |
|
25 } |
|
26 |
|
27 EXPORT_C TProcessId CMemSpyApiServer::Id() const |
|
28 { |
|
29 return iData->iId; |
|
30 } |
|
31 |
|
32 EXPORT_C const TDesC& CMemSpyApiServer::Name() const |
|
33 { |
|
34 return iData->iName; |
|
35 } |
|
36 |
|
37 EXPORT_C TInt CMemSpyApiServer::SessionCount() const |
|
38 { |
|
39 return iData->iSessionCount; |
|
40 } |
|
41 |
|
42 CMemSpyApiServer::CMemSpyApiServer() : iData(0) |
|
43 { |
|
44 } |
|
45 |
|
46 void CMemSpyApiServer::ConstructL(const TMemSpyServerData& aData) |
|
47 { |
|
48 iData = new (ELeave) TMemSpyServerData(aData); |
|
49 } |
|
50 |
|
51 CMemSpyApiServer* CMemSpyApiServer::NewL(const TMemSpyServerData& aData) |
|
52 { |
|
53 CMemSpyApiServer* self = CMemSpyApiServer::NewLC(aData); |
|
54 CleanupStack::Pop(self); |
|
55 return (self); |
|
56 } |
|
57 |
|
58 CMemSpyApiServer* CMemSpyApiServer::NewLC(const TMemSpyServerData& aData) |
|
59 { |
|
60 CMemSpyApiServer* self = new (ELeave) CMemSpyApiServer; |
|
61 CleanupStack::PushL(self); |
|
62 self->ConstructL(aData); |
|
63 return (self); |
|
64 } |
|
65 |
|