|
1 /* |
|
2 * Copyright (c) 2006 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: ImumMboxInternalDataConverter.inl |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "ImumMboxData.h" |
|
20 #include "ImumInSettingsDataImpl.h" |
|
21 #include "ImumInSettingsDataCollectionImpl.h" |
|
22 |
|
23 // --------------------------------------------------------------------------- |
|
24 // CImumMboxInternalDataConverter::FillText8InternalL() |
|
25 // --------------------------------------------------------------------------- |
|
26 // |
|
27 template<TInt TAttrSize, class TAttrSettings> |
|
28 void CImumMboxInternalDataConverter::FillText8InternalL( |
|
29 TAttrSettings& aSettings, |
|
30 const TUint aAttributeKey, |
|
31 const TDesC8& aText ) |
|
32 { |
|
33 TBuf8<TAttrSize> text; |
|
34 text.Copy( aText.Left( TAttrSize ) ); |
|
35 User::LeaveIfError( aSettings.SetAttr( aAttributeKey, text ) ); |
|
36 } |
|
37 |
|
38 // --------------------------------------------------------------------------- |
|
39 // CImumMboxInternalDataConverter::FillTextInternalL() |
|
40 // --------------------------------------------------------------------------- |
|
41 // |
|
42 template<TInt TAttrSize, class TAttrSettings> |
|
43 void CImumMboxInternalDataConverter::FillTextInternalL( |
|
44 TAttrSettings& aSettings, |
|
45 const TUint aAttributeKey, |
|
46 const TDesC& aText ) |
|
47 { |
|
48 TBuf<TAttrSize> text; |
|
49 text.Copy( aText.Left( TAttrSize ) ); |
|
50 User::LeaveIfError( aSettings.SetAttr( aAttributeKey, text ) ); |
|
51 } |
|
52 |
|
53 // End of File |
|
54 |