equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006-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: Main classes for Out of Memory Monitor. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef OOMSUBSCRIBEHELPER_H |
|
20 #define OOMSUBSCRIBEHELPER_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 class RProperty; |
|
25 |
|
26 /** |
|
27 * This class is a simple active object which monitors the publish subscribe key method of calling the |
|
28 * requesting that the OOM Monitor starts to free memory |
|
29 * |
|
30 * @lib oommonitor.lib |
|
31 * @since S60 v5.0 |
|
32 */ |
|
33 NONSHARABLE_CLASS(CSubscribeHelper) : public CActive |
|
34 { |
|
35 public: |
|
36 CSubscribeHelper(TCallBack aCallBack, RProperty& aProperty); |
|
37 ~CSubscribeHelper(); |
|
38 |
|
39 public: // New functions |
|
40 void Subscribe(); |
|
41 void StopSubscribe(); |
|
42 |
|
43 private: // from CActive |
|
44 void RunL(); |
|
45 void DoCancel(); |
|
46 |
|
47 private: |
|
48 TCallBack iCallBack; |
|
49 RProperty& iProperty; |
|
50 }; |
|
51 |
|
52 #endif /*OOMSUBSCRIBEHELPER_H*/ |