equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Static utility methods declaration |
|
16 */ |
|
17 |
|
18 #ifndef __UTILS_H__ |
|
19 #define __UTILS_H__ |
|
20 |
|
21 class CUtils : public CBase |
|
22 { |
|
23 public: |
|
24 /** |
|
25 * Returns ETrue if Ovi Store client is running |
|
26 */ |
|
27 static TBool OviStoreRunning(); |
|
28 |
|
29 /** |
|
30 * Returns ETrue if process with given UIDs is running |
|
31 */ |
|
32 static TBool IsProcessRunning(const TInt aUid); |
|
33 |
|
34 /** |
|
35 * Returns ETrue if any of the listed processes with given UIDs are running |
|
36 */ |
|
37 static TBool AreProcessesRunning(const RArray<TInt>& aUids); |
|
38 |
|
39 /** |
|
40 * Hides specified application icon from the menu grid. This version |
|
41 * does not leave. |
|
42 * |
|
43 * @returns Error code |
|
44 */ |
|
45 static TInt HideApplicationFromMenu( TInt aUid, TBool aHidden ); |
|
46 |
|
47 /** |
|
48 * Hides specified application icon from the menu grid. |
|
49 */ |
|
50 static void HideApplicationFromMenuL( TInt aUid, TBool aHidden ); |
|
51 |
|
52 /** |
|
53 * Helper function to create a string presentation of the UID. |
|
54 * Used by HideApplicationFromMenu() |
|
55 */ |
|
56 static void UIDText( TDes& aUid, TInt aInt ); |
|
57 }; |
|
58 |
|
59 #endif |