|
1 /* |
|
2 * Copyright (c) 2008 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: Java Sid Checker is an ECOM plugin for Symbian AppArc |
|
15 * (database that contains info on all applications installed |
|
16 * to the device) |
|
17 * It tells AppArc whether Java application installed |
|
18 * to a removable storage media is present and can be executed. |
|
19 * |
|
20 */ |
|
21 |
|
22 |
|
23 #ifndef JAVASIDCHECKER_H |
|
24 #define JAVASIDCHECKER_H |
|
25 |
|
26 #include <apsidchecker.h> |
|
27 #include <javaregistryincludes.h> |
|
28 |
|
29 NONSHARABLE_CLASS(CJavaSidChecker) : public CAppSidChecker |
|
30 /** Java Sid checker. |
|
31 |
|
32 This is an implementation of CAppSidChecker for checking native application Sids |
|
33 |
|
34 This instance of the CAppSidChecker is used to verify that a native application |
|
35 installed and can be launched. |
|
36 */ |
|
37 { |
|
38 public: |
|
39 static CJavaSidChecker* NewL(); |
|
40 ~CJavaSidChecker(); |
|
41 |
|
42 // From CAppSidChecker |
|
43 TBool AppRegisteredAt(const TUid& aSid, TDriveUnit aDrive); |
|
44 |
|
45 void SetRescanCallBackL(const TCallBack &aCallback); |
|
46 |
|
47 private: |
|
48 CJavaSidChecker(); |
|
49 TBool AppRegisteredAtL(const TUid& aSid, TDriveUnit aDrive); |
|
50 |
|
51 Java::CJavaRegistry* iJavaRegistry; |
|
52 }; |
|
53 |
|
54 #endif // JAVASIDCHECKER_H |