smartinstaller/common/utils.h
author Santosh V Patil <santosh.v.patil@nokia.com>
Wed, 30 Jun 2010 11:01:26 +0530
branchADM
changeset 48 364021cecc90
permissions -rw-r--r--
SmartInstaller contribution based on the Nokia Qt SDK 1.0 release

/*
* Copyright (c) 2010 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:
*   Static utility methods declaration
*/

#ifndef __UTILS_H__
#define __UTILS_H__

class CUtils : public CBase
	{
public:
	/**
	 * Returns ETrue if Ovi Store client is running
	 */
	static TBool OviStoreRunning();

	/**
	 * Returns ETrue if process with given UIDs is running
	 */
	static TBool IsProcessRunning(const TInt aUid);

	/**
	 * Returns ETrue if any of the listed processes with given UIDs are running
	 */
	static TBool AreProcessesRunning(const RArray<TInt>& aUids);

	/**
	 * Hides specified application icon from the menu grid. This version
	 * does not leave.
	 *
	 * @returns Error code
	 */
	static TInt HideApplicationFromMenu( TInt aUid, TBool aHidden );

	/**
	 * Hides specified application icon from the menu grid.
	 */
	static void HideApplicationFromMenuL( TInt aUid, TBool aHidden );

	/**
	 * Helper function to create a string presentation of the UID.
	 * Used by HideApplicationFromMenu()
	 */
	static void UIDText( TDes& aUid, TInt aInt );
	};

#endif