omadm/omadmappui/src/NSmlDMSyncProfileItem.cpp
changeset 0 3ce708148e4d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/omadm/omadmappui/src/NSmlDMSyncProfileItem.cpp	Thu Dec 17 08:40:12 2009 +0200
@@ -0,0 +1,81 @@
+/*
+* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  Profile item
+*
+*/
+
+
+#include "NSmlDMSyncProfileItem.h"
+#include "NSmlDMSyncDebug.h"
+
+// ============================ MEMBER FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// TNSmlDMSyncProfileItem::Id
+// -----------------------------------------------------------------------------
+//
+TInt TNSmlDMSyncProfileItem::Id()
+	{
+	FLOG( "[OMADM] TNSmlDMSyncProfileItem::Id:" );
+	
+	return iProfileId;
+	}
+
+// -----------------------------------------------------------------------------
+// TNSmlDMSyncProfileItem::SetId
+// -----------------------------------------------------------------------------
+//
+void TNSmlDMSyncProfileItem::SetId(TInt aId)
+	{
+	FLOG( "[OMADM] TNSmlDMSyncProfileItem::SetId:" );
+	
+	iProfileId = aId;
+	}
+
+// -----------------------------------------------------------------------------
+// TNSmlDMSyncProfileItem::Name
+// -----------------------------------------------------------------------------
+//
+const TDesC& TNSmlDMSyncProfileItem::Name()
+	{
+	FLOG( "[OMADM] TNSmlDMSyncProfileItem::Name:" );
+	
+	return iProfileName;
+	}
+
+// -----------------------------------------------------------------------------
+// TNSmlDMSyncProfileItem::SetName
+// -----------------------------------------------------------------------------
+//
+void TNSmlDMSyncProfileItem::SetName( const TDesC& aName )
+	{
+	FLOG( "[OMADM] TNSmlDMSyncProfileItem::SetName:" );
+	
+	iProfileName.Copy( aName.Left( iProfileName.MaxLength() ) );
+	}
+
+// -----------------------------------------------------------------------------
+// TNSmlDMSyncProfileItem::CompareItem
+// -----------------------------------------------------------------------------
+//
+TInt TNSmlDMSyncProfileItem::CompareItem( 
+                                        const TNSmlDMSyncProfileItem& aFirst,
+                                        const TNSmlDMSyncProfileItem& aSecond )
+	{
+	FLOG( "[OMADM] TNSmlDMSyncProfileItem::CompareItem:" );
+	
+	return aFirst.iProfileName.Compare( aSecond.iProfileName );
+	}
+
+// End of File