|
1 /* |
|
2 * Copyright (c) 2005 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: Profile item |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "NSmlDMSyncProfileItem.h" |
|
20 #include "NSmlDMSyncDebug.h" |
|
21 |
|
22 // ============================ MEMBER FUNCTIONS =============================== |
|
23 |
|
24 // ----------------------------------------------------------------------------- |
|
25 // TNSmlDMSyncProfileItem::Id |
|
26 // ----------------------------------------------------------------------------- |
|
27 // |
|
28 TInt TNSmlDMSyncProfileItem::Id() |
|
29 { |
|
30 FLOG( "[OMADM] TNSmlDMSyncProfileItem::Id:" ); |
|
31 |
|
32 return iProfileId; |
|
33 } |
|
34 |
|
35 // ----------------------------------------------------------------------------- |
|
36 // TNSmlDMSyncProfileItem::SetId |
|
37 // ----------------------------------------------------------------------------- |
|
38 // |
|
39 void TNSmlDMSyncProfileItem::SetId(TInt aId) |
|
40 { |
|
41 FLOG( "[OMADM] TNSmlDMSyncProfileItem::SetId:" ); |
|
42 |
|
43 iProfileId = aId; |
|
44 } |
|
45 |
|
46 // ----------------------------------------------------------------------------- |
|
47 // TNSmlDMSyncProfileItem::Name |
|
48 // ----------------------------------------------------------------------------- |
|
49 // |
|
50 const TDesC& TNSmlDMSyncProfileItem::Name() |
|
51 { |
|
52 FLOG( "[OMADM] TNSmlDMSyncProfileItem::Name:" ); |
|
53 |
|
54 return iProfileName; |
|
55 } |
|
56 |
|
57 // ----------------------------------------------------------------------------- |
|
58 // TNSmlDMSyncProfileItem::SetName |
|
59 // ----------------------------------------------------------------------------- |
|
60 // |
|
61 void TNSmlDMSyncProfileItem::SetName( const TDesC& aName ) |
|
62 { |
|
63 FLOG( "[OMADM] TNSmlDMSyncProfileItem::SetName:" ); |
|
64 |
|
65 iProfileName.Copy( aName.Left( iProfileName.MaxLength() ) ); |
|
66 } |
|
67 |
|
68 // ----------------------------------------------------------------------------- |
|
69 // TNSmlDMSyncProfileItem::CompareItem |
|
70 // ----------------------------------------------------------------------------- |
|
71 // |
|
72 TInt TNSmlDMSyncProfileItem::CompareItem( |
|
73 const TNSmlDMSyncProfileItem& aFirst, |
|
74 const TNSmlDMSyncProfileItem& aSecond ) |
|
75 { |
|
76 FLOG( "[OMADM] TNSmlDMSyncProfileItem::CompareItem:" ); |
|
77 |
|
78 return aFirst.iProfileName.Compare( aSecond.iProfileName ); |
|
79 } |
|
80 |
|
81 // End of File |