equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 Ixonos Plc. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "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 * Ixonos Plc |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CFILTERSTACK_H__ |
|
21 #define __CFILTERSTACK_H__ |
|
22 |
|
23 #include <e32base.h> |
|
24 #include "MImageFilter.h" |
|
25 |
|
26 |
|
27 class TFilter |
|
28 { |
|
29 public: |
|
30 inline ~TFilter() |
|
31 { |
|
32 delete iFilter; |
|
33 iLibrary.Close(); |
|
34 } |
|
35 MImageFilter* iFilter; |
|
36 RLibrary iLibrary; |
|
37 }; |
|
38 |
|
39 class CFilterStack |
|
40 : public CBase |
|
41 { |
|
42 public: |
|
43 static CFilterStack* NewL(); |
|
44 ~CFilterStack(); |
|
45 |
|
46 private: |
|
47 CFilterStack(); |
|
48 void ConstructL(); |
|
49 |
|
50 public: |
|
51 MImageFilter* Filter( TInt aPosition ); |
|
52 |
|
53 void AddFilterL( const TDesC& aName ); |
|
54 void AddFilterL( const TDesC& aName, TInt aPosition ); |
|
55 void AddFilterL( const TFilter * aFilter ); |
|
56 void AddFilterL( const TFilter * aFilter, const TInt aPosition ); |
|
57 |
|
58 void RemoveFilter( TInt aPosition ); |
|
59 void RemoveFilter ( TInt aPosition, TFilter *& aFilter ); |
|
60 |
|
61 TInt FunctionL( TInt aPosition, const TDesC& aCmd ); |
|
62 TInt NumFilters(); |
|
63 |
|
64 private: |
|
65 void InitStack(); |
|
66 |
|
67 private: |
|
68 RPointerArray< TFilter >iStack; |
|
69 }; |
|
70 |
|
71 |
|
72 #endif |