equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005-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: Contact store Uri |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDES |
|
20 #include <CVPbkContactStoreUri.h> |
|
21 #include <TVPbkContactStoreUriPtr.h> |
|
22 |
|
23 |
|
24 // CVPbkContactStoreUri implementation |
|
25 inline CVPbkContactStoreUri::CVPbkContactStoreUri() |
|
26 { |
|
27 } |
|
28 |
|
29 inline void CVPbkContactStoreUri::ConstructL( |
|
30 const TDesC& aStoreUri) |
|
31 { |
|
32 iUriBuffer = aStoreUri.AllocL(); |
|
33 } |
|
34 |
|
35 EXPORT_C CVPbkContactStoreUri* CVPbkContactStoreUri::NewL( |
|
36 const TVPbkContactStoreUriPtr& aStoreUri) |
|
37 { |
|
38 CVPbkContactStoreUri* self = new(ELeave) CVPbkContactStoreUri; |
|
39 CleanupStack::PushL(self); |
|
40 self->ConstructL(aStoreUri.UriDes()); |
|
41 CleanupStack::Pop(); |
|
42 return self; |
|
43 } |
|
44 |
|
45 CVPbkContactStoreUri::~CVPbkContactStoreUri() |
|
46 { |
|
47 delete iUriBuffer; |
|
48 } |
|
49 |
|
50 EXPORT_C TVPbkContactStoreUriPtr CVPbkContactStoreUri::Uri() const |
|
51 { |
|
52 return TVPbkContactStoreUriPtr(*iUriBuffer); |
|
53 } |
|
54 |
|
55 |
|
56 // end of file |