diff -r 75a71fdb4c92 -r 7d11f9a6646f applicationmanagement/server/inc/AMAppHideUtil.h --- a/applicationmanagement/server/inc/AMAppHideUtil.h Tue Feb 02 00:03:17 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,105 +0,0 @@ -/* - * 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: Implementation of applicationmanagement components - * - */ - - -#ifndef __AMAPPHIDEUTIL_H__ -#define __AMAPPHIDEUTIL_H__ - -#include - - - -namespace NApplicationManagement - { - - typedef RArray RUidArray; - - class CAMAppHideUtil : public CBase - { - RUidArray iHiddenUids; // The hidden uid list - TBool iChanged; - /** - * Constructor - */ - CAMAppHideUtil(); - - - /** - * Second phase constructor. Loads the uid list from centrep. - */ - void ConstructL(); - - - - void ParseUids( RUidArray &aUid, const TDesC8& aUidList ); - - /** - * Loads uids from centrep - */ - void LoadUidsL(); - - /** - * Parses uid, returning KErrNone if successful - */ - TInt ParseUid( TLex &aLex, TUid &aUid ) const; - - /** - * Skips delimiter, returning ETrue if delimiter is expected one. - */ - TBool SkipDelim( TLex &aLex ) const; - - /** - * Puts aUid to aBuf and if aHasMore also adds delimiter - */ - void PersistUid( const TUid &aUid, TDes &aBuf, TBool aHasMore ) const; - public: - /** - * Destructor - */ - virtual ~CAMAppHideUtil(); - - /** - * Creates new CAMAppHideUtil instance - */ - static CAMAppHideUtil* CAMAppHideUtil::NewL(); - - /** - * Adds uid to list, and updates the repository if needed - */ - void AddUidL(const TUid& aUid, TBool aPersist = EFalse ); - - /** - * Removed uid from list, and updates the repository if needed - */ - void RemoveUidL( const TUid& aUid, TBool aPersist = EFalse ); - - /** - * Writes uids to centrep - */ - void PersistUidsL(); - - /** - * Resets the hidden uid array - */ - void Reset(); - }; - - } - -#endif // #ifdef __AMAPPHIDEUTIL_H__ - -// End of File