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 "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // apadll.h |
|
15 // |
|
16 |
|
17 #ifndef __APADLL_H__ |
|
18 #define __APADLL_H__ |
|
19 |
|
20 #include <e32std.h> |
|
21 #include <e32base.h> |
|
22 #include <apadef.h> |
|
23 #include <apparc.h> |
|
24 |
|
25 class CApaApplication; |
|
26 |
|
27 NONSHARABLE_CLASS(RApaApplication) |
|
28 { |
|
29 public: |
|
30 RApaApplication(); |
|
31 void Close(); |
|
32 void CreateApplicationL(TApaApplicationFactory aApplicationFactory); // Uses the factory to create the application |
|
33 |
|
34 TFileName AppFileName() const; |
|
35 TUid AppFileUid() const; |
|
36 CApaApplication* Application(); |
|
37 inline const CApaApplication* Application() const; |
|
38 void ScheduleForAsyncDeletion(TBool aDoDelete = ETrue); |
|
39 TBool IsScheduleForAsyncDeletion() const; |
|
40 private: |
|
41 ~RApaApplication(); |
|
42 private: |
|
43 CApaApplication* iApplication; |
|
44 RBuf iAppName; |
|
45 TUid iFileUid; |
|
46 TBool iScheduledForDeletion; |
|
47 }; |
|
48 |
|
49 |
|
50 // inlines |
|
51 |
|
52 const CApaApplication* RApaApplication::Application() const |
|
53 { return const_cast<RApaApplication*>(this)->Application(); } |
|
54 |
|
55 #endif // __APADLL_H__ |