diff -r a5fecba4b1e4 -r 7464c1e21dae deviceupdatesui/deviceupdates/inc/nsmldmsyncprofileitem.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/deviceupdatesui/deviceupdates/inc/nsmldmsyncprofileitem.h Fri Mar 19 04:28:07 2010 +0530 @@ -0,0 +1,93 @@ +/* +* 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: Represents one sync profile +* +*/ + + + +#ifndef TNSMLDMSYNCPROFILEITEM_H +#define TNSMLDMSYNCPROFILEITEM_H + +// INCLUDES +#include +#include "NSmlDMdef.h" + +/** +* TNSmlDMSyncProfileItem +* +* TNSmlDMSyncProfileItem represents one sync profile. +*/ +NONSHARABLE_CLASS (TNSmlDMSyncProfileItem) + { + public: + /** + * Name + * @param None + * @return TDesC + */ + const TDesC& Name(); + + /** + * SetName + * @param aName Profile name + * @return None + */ + void SetName(const TDesC& aName); + + /** + * Id + * @param None + * @return ID + */ + TInt Id(); + + /** + * SetId + * @param aId Profile id + * @return None + */ + void SetId(TInt aId); + + public: + + /** + * CompareItem + * @param aFirst + * @param aSecond + * @return + */ + static TInt CompareItem( const TNSmlDMSyncProfileItem& aFirst, + const TNSmlDMSyncProfileItem& aSecond ); + + public: + TBuf iProfileName; + TInt iProfileId; + TBool iSynced; + TTime iLastSync; + TTime iLastSuccessSync; + TInt iBearer; + TInt iActive; + TBool iDefault; + TBool iDeleteAllowed; + TBool iProfileLocked; + TInt iApplicationId; + TInt iImplementationId; + TInt iContentCount; + TInt iMandatoryCheck; + }; + +#endif // TNSMLDMSYNCPROFILEITEM_H + +// End of File