|
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: Defines abstract interface observing add to album operation completion* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 #ifndef MCAMSTATICSETTINGS_H |
|
20 #define MCAMSTATICSETTING_H |
|
21 |
|
22 class CCamConfiguration; |
|
23 |
|
24 /** |
|
25 * Interface for static settings model. |
|
26 */ |
|
27 class MCamStaticSettings |
|
28 { |
|
29 public: |
|
30 |
|
31 /** |
|
32 * Returns the current integer value for the specified setting |
|
33 * @return the current integer setting value |
|
34 * @param aSettingItem specifies which setting item that want the value of. |
|
35 * @since 2.8 |
|
36 */ |
|
37 virtual TInt IntegerSettingValue( TInt aSettingItem ) const = 0; |
|
38 |
|
39 /** |
|
40 * Sets a new value for the specified integer setting |
|
41 * @param aSettingItem specifies which setting item that want to set the value of. |
|
42 * @param aSettingValue the new integer value for the specified setting item. |
|
43 * @since 2.8 |
|
44 */ |
|
45 virtual void SetIntegerSettingValueL( TInt aSettingItem, TInt aSettingValue ) = 0; |
|
46 |
|
47 /** |
|
48 * Returns the current text value for the specified setting |
|
49 * @return the current text setting value |
|
50 * @param aSettingItem specifies which setting item that want the text value of. |
|
51 * @since 2.8 |
|
52 */ |
|
53 virtual TPtrC TextSettingValue( TInt aSettingItem ) const = 0; |
|
54 |
|
55 /** |
|
56 * Sets a new value for the specified integer setting |
|
57 * @param aSettingItem specifies which setting item that want to set the value of. |
|
58 * @param aSettingValue the new integer value for the specified setting item. |
|
59 * @since 2.8 |
|
60 */ |
|
61 virtual void SetTextSettingValueL( TInt aSettingItem, |
|
62 const TDesC& aSettingValue ) = 0; |
|
63 |
|
64 /** |
|
65 * Loads the image/common static settings from shared data. Required to update |
|
66 * the settings whenever get foreground event, in case of external |
|
67 * changes to the settings. |
|
68 * @since 2.8 |
|
69 */ |
|
70 virtual void LoadPhotoStaticSettingsL( const TBool aResetFromPlugin ) = 0; |
|
71 |
|
72 /** |
|
73 * Loads the video/common static settings from shared data. Required to update |
|
74 * the settings whenever get foreground event, in case of external |
|
75 * changes to the settings. |
|
76 */ |
|
77 virtual void LoadVideoStaticSettingsL( const TBool aResetFromPlugin ) = 0; |
|
78 |
|
79 /** |
|
80 * Returns reference to CCamConfiguration object describing |
|
81 * the device's camera configuration. |
|
82 * @return configuration |
|
83 */ |
|
84 virtual CCamConfiguration& Configuration() const = 0; |
|
85 }; |
|
86 |
|
87 #endif // MCAMSTATICSETTINGS_H |
|
88 // End of File |