1 /* |
|
2 * Copyright (c) 2007 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 * |
|
16 */ |
|
17 |
|
18 #ifndef CAMVIEWFINDERGRID_H |
|
19 #define CAMVIEWFINDERGRID_H |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 class CBitmapContext; |
|
24 /** |
|
25 * Interface for viewfinder grid usage. |
|
26 */ |
|
27 class MCamVfGridDrawer |
|
28 { |
|
29 public: |
|
30 virtual void InitL( TAny* aParam ) = 0; |
|
31 |
|
32 virtual void Draw( CBitmapContext& aGc ) const = 0; |
|
33 |
|
34 virtual void Draw( const TRect& aRect, |
|
35 CBitmapContext& aGc ) const = 0; |
|
36 |
|
37 virtual void SetVisible( TBool aVisible ) = 0; |
|
38 |
|
39 virtual TBool IsVisible() const = 0; |
|
40 |
|
41 // Essential to be able to destroy via mixin pointer. |
|
42 // Otherwise delete causes USER 42 panic. |
|
43 virtual ~MCamVfGridDrawer() |
|
44 {}; |
|
45 }; |
|
46 |
|
47 |
|
48 |
|
49 /** |
|
50 * Factory class to instantiate viewfinder grid. |
|
51 */ |
|
52 class CCamVfGridFactory : public CBase |
|
53 { |
|
54 public: |
|
55 /** |
|
56 * CreateVfGridDrawer |
|
57 * @param aUid The implementation id of grid drawer. |
|
58 * @return Pointer to object of the implementing class |
|
59 * or NULL if uid not supported. |
|
60 */ |
|
61 static MCamVfGridDrawer* CreateVfGridDrawerL( TUid aUid ); |
|
62 }; |
|
63 |
|
64 |
|
65 #endif |
|