equal
deleted
inserted
replaced
|
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __APADLL_H__ |
|
17 #define __APADLL_H__ |
|
18 |
|
19 #if !defined(__E32STD_H__) |
|
20 #include <e32std.h> |
|
21 #endif |
|
22 #if !defined(__E32BASE_H__) |
|
23 #include <e32base.h> |
|
24 #endif |
|
25 #if !defined(__APADEF_H__) |
|
26 #include <apadef.h> |
|
27 #endif |
|
28 #if !defined(__APPARC_H__) |
|
29 #include <apparc.h> |
|
30 #endif |
|
31 |
|
32 |
|
33 // classes referenced |
|
34 class CApaApplication; |
|
35 class RFs; |
|
36 |
|
37 NONSHARABLE_CLASS(CApaAppHolder) : public CBase |
|
38 /** Provides an interface for obtaining data gathered differently for DLLs and EXEs. Derived |
|
39 classes create and own the application object. The equivalent of the old CApaDll derives from this.*/ |
|
40 { |
|
41 public: |
|
42 CApaAppHolder(); |
|
43 ~CApaAppHolder(); |
|
44 |
|
45 virtual TFileName FileName() const = 0; |
|
46 virtual TUid Uid() const = 0; |
|
47 virtual CApaApplication* Application() const = 0; |
|
48 |
|
49 protected: |
|
50 void UpdateAppsRefToThis(); |
|
51 }; |
|
52 |
|
53 NONSHARABLE_CLASS(CApaExe) : public CApaAppHolder |
|
54 { |
|
55 public: |
|
56 CApaExe(); |
|
57 ~CApaExe(); |
|
58 |
|
59 TFileName FileName() const; |
|
60 TUid Uid() const; |
|
61 CApaApplication* Application() const; |
|
62 |
|
63 void CreateApplicationL(TApaApplicationFactory aApplicationFactory); // Uses the factory to create the application |
|
64 private: |
|
65 CApaApplication* iApplication; |
|
66 HBufC* iAppName; |
|
67 TUid iFileUid; |
|
68 }; |
|
69 |
|
70 #endif |