|
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 * Declares statuspane's background cleaner. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __XNSPBGCLEANER_ |
|
20 #define __XNSPBGCLEANER_ |
|
21 |
|
22 // Forward declarations |
|
23 |
|
24 /** |
|
25 * Statuspane background cleaner. |
|
26 * |
|
27 * @class CXnSpBgCleaner xnspbgcleaner.h |
|
28 */ |
|
29 NONSHARABLE_CLASS( CXnSpBgCleaner ) : public CCoeControl |
|
30 { |
|
31 public: |
|
32 /** |
|
33 * Two-phased constructors. |
|
34 */ |
|
35 static CXnSpBgCleaner* NewL(); |
|
36 static CXnSpBgCleaner* NewLC(); |
|
37 |
|
38 /** Destructor */ |
|
39 ~CXnSpBgCleaner(); |
|
40 |
|
41 private: |
|
42 /** constructor */ |
|
43 CXnSpBgCleaner(); |
|
44 |
|
45 /** 2nd phase constructor */ |
|
46 void ConstructL(); |
|
47 |
|
48 protected: // from base class CCoeControl |
|
49 |
|
50 /** |
|
51 * Handles a change to the control's resources |
|
52 * |
|
53 * @see CCoeControl::HandleResourceChange |
|
54 */ |
|
55 void HandleResourceChange( TInt aType ); |
|
56 |
|
57 /** |
|
58 * Sets the control's extent, specifying a rectangle. |
|
59 * |
|
60 * @see CCoeControl::SizeChanged |
|
61 */ |
|
62 void SizeChanged(); |
|
63 |
|
64 /* |
|
65 * Draws the control. |
|
66 * |
|
67 * @see CCoeControl::Draw |
|
68 */ |
|
69 void Draw( const TRect& aRect ) const; |
|
70 |
|
71 }; |
|
72 |
|
73 #endif // __XNSPBGCLEANER_ |