deviceupdatesui/deviceupdates/src/nsmldmsyncprofileitem.cpp
author hgs
Tue, 13 Jul 2010 03:42:03 +0530
changeset 43 88e14c3d4c4f
parent 36 9eefb50e711a
permissions -rw-r--r--
201019
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
33
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     1
/*
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     2
* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). 
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     3
* All rights reserved.
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     8
*
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     9
* Initial Contributors:
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    11
*
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    12
* Contributors:
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    13
*
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    14
* Description:  Profile item
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    15
*
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    16
*/
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    17
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    18
36
hgs
parents: 33
diff changeset
    19
#include "nsmldmsyncprofileitem.h"
hgs
parents: 33
diff changeset
    20
#include "nsmldmsyncdebug.h"
33
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    21
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    22
// ============================ MEMBER FUNCTIONS ===============================
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    23
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    24
// -----------------------------------------------------------------------------
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    25
// TNSmlDMSyncProfileItem::Id
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    26
// -----------------------------------------------------------------------------
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    27
//
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    28
TInt TNSmlDMSyncProfileItem::Id()
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    29
	{
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    30
	FLOG( "[OMADM] TNSmlDMSyncProfileItem::Id:" );
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    31
	
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    32
	return iProfileId;
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    33
	}
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    34
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    35
// -----------------------------------------------------------------------------
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    36
// TNSmlDMSyncProfileItem::SetId
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    37
// -----------------------------------------------------------------------------
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    38
//
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    39
void TNSmlDMSyncProfileItem::SetId(TInt aId)
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    40
	{
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    41
	FLOG( "[OMADM] TNSmlDMSyncProfileItem::SetId:" );
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    42
	
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    43
	iProfileId = aId;
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    44
	}
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    45
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    46
// -----------------------------------------------------------------------------
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    47
// TNSmlDMSyncProfileItem::Name
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    48
// -----------------------------------------------------------------------------
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    49
//
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    50
const TDesC& TNSmlDMSyncProfileItem::Name()
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    51
	{
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    52
	FLOG( "[OMADM] TNSmlDMSyncProfileItem::Name:" );
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    53
	
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    54
	return iProfileName;
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    55
	}
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    56
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    57
// -----------------------------------------------------------------------------
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    58
// TNSmlDMSyncProfileItem::SetName
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    59
// -----------------------------------------------------------------------------
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    60
//
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    61
void TNSmlDMSyncProfileItem::SetName( const TDesC& aName )
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    62
	{
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    63
	FLOG( "[OMADM] TNSmlDMSyncProfileItem::SetName:" );
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    64
	
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    65
	iProfileName.Copy( aName.Left( iProfileName.MaxLength() ) );
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    66
	}
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    67
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    68
// -----------------------------------------------------------------------------
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    69
// TNSmlDMSyncProfileItem::CompareItem
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    70
// -----------------------------------------------------------------------------
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    71
//
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    72
TInt TNSmlDMSyncProfileItem::CompareItem( 
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    73
                                        const TNSmlDMSyncProfileItem& aFirst,
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    74
                                        const TNSmlDMSyncProfileItem& aSecond )
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    75
	{
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    76
	FLOG( "[OMADM] TNSmlDMSyncProfileItem::CompareItem:" );
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    77
	
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    78
	return aFirst.iProfileName.Compare( aSecond.iProfileName );
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    79
	}
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    80
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    81
// End of File