imstutils/imconnectionprovider/tsrc/imconnectionprovider_test/src/stubs/s_ximpidentity.cpp
equal
deleted
inserted
replaced
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 "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: Interface for identity object. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "s_ximpidentity.h" |
|
20 |
|
21 MyMXIMPIdentityStub::MyMXIMPIdentityStub() |
|
22 { |
|
23 |
|
24 } |
|
25 MyMXIMPIdentityStub::~MyMXIMPIdentityStub() |
|
26 { |
|
27 delete iIdentity; |
|
28 } |
|
29 |
|
30 |
|
31 |
|
32 const TDesC16& MyMXIMPIdentityStub::Identity() const |
|
33 { |
|
34 return *iIdentity; |
|
35 } |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 void MyMXIMPIdentityStub::SetIdentityL( |
|
42 const TDesC16& aIdentity ) |
|
43 { |
|
44 if (iIdentity) |
|
45 { |
|
46 delete iIdentity; |
|
47 iIdentity = NULL; |
|
48 } |
|
49 iIdentity = aIdentity.AllocL(); |
|
50 } |
|
51 |
|
52 |
|
53 const TAny* MyMXIMPIdentityStub::GetInterface( |
|
54 TInt32 aInterfaceId, |
|
55 TIfGetOps aOps ) const |
|
56 { |
|
57 |
|
58 } |
|
59 |
|
60 TAny* MyMXIMPIdentityStub::GetInterface( |
|
61 TInt32 aInterfaceId, |
|
62 TIfGetOps aOps ) |
|
63 { |
|
64 |
|
65 } |
|
66 |
|
67 TInt32 MyMXIMPIdentityStub::GetInterfaceId() const |
|
68 { |
|
69 |
|
70 } |
|