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 * |
|
16 */ |
|
17 |
|
18 #include "cxutils.h" |
|
19 #include "cxequalitydetails.h" |
|
20 #include "cxequalitypresetsdesktop.h" |
|
21 |
|
22 /*! |
|
23 * Intializes ImagingConfigManager |
|
24 */ |
|
25 CxeQualityPresetsDesktop::CxeQualityPresetsDesktop() |
|
26 { |
|
27 CX_DEBUG_ENTER_FUNCTION(); |
|
28 CX_DEBUG_EXIT_FUNCTION(); |
|
29 |
|
30 } |
|
31 |
|
32 /*! |
|
33 * CxeQualityPresetsDesktop::~CxeQualityPresetsDesktop() |
|
34 */ |
|
35 CxeQualityPresetsDesktop::~CxeQualityPresetsDesktop() |
|
36 { |
|
37 CX_DEBUG_ENTER_FUNCTION(); |
|
38 |
|
39 CX_DEBUG_EXIT_FUNCTION(); |
|
40 } |
|
41 |
|
42 /*! |
|
43 This function returns sorted list of image qualities from highest to lowest resolution. |
|
44 i.e. first element in the list represent highest supported image resolution and so on. |
|
45 @param cameraId The CameraIndex which defines which camera we are using primary/secondary. |
|
46 Returns sorted list of image qualities in descending order. |
|
47 */ |
|
48 QList<CxeImageDetails> CxeQualityPresetsDesktop::imageQualityPresets(Cxe::CameraIndex cameraId) |
|
49 { |
|
50 CX_DEBUG_ENTER_FUNCTION(); |
|
51 CX_DEBUG_EXIT_FUNCTION(); |
|
52 |
|
53 return QList<CxeImageDetails>(); |
|
54 } |
|
55 |
|
56 |
|
57 |
|
58 /*! |
|
59 This function returns sorted list of video qualities from highest to lowest resolution. |
|
60 i.e. first element in the list represent highest supported video resolution and so on. |
|
61 @param cameraId The CameraIndex which defines which camera we are using primary/secondary. |
|
62 Returns sorted list if image qualities in descending order. |
|
63 */ |
|
64 QList<CxeVideoDetails> CxeQualityPresetsDesktop::videoQualityPresets(Cxe::CameraIndex cameraId) |
|
65 { |
|
66 CX_DEBUG_ENTER_FUNCTION(); |
|
67 CX_DEBUG_EXIT_FUNCTION(); |
|
68 |
|
69 return QList<CxeVideoDetails>(); |
|
70 } |
|
71 |
|
72 int CxeQualityPresetsDesktop::recordingTimeAvailable(const CxeVideoDetails &details, qint64 space) |
|
73 { |
|
74 Q_UNUSED(details); |
|
75 Q_UNUSED(space); |
|
76 |
|
77 return 0; |
|
78 } |
|
79 |
|
80 /*! |
|
81 Operator to sort values in ascending order. |
|
82 @param s1 type of data to be sorted. |
|
83 */ |
|
84 bool CxeImageDetails::operator<(const CxeImageDetails &s1) const |
|
85 { |
|
86 return mHeight < s1.mHeight; |
|
87 } |
|
88 |
|
89 |
|
90 /*! |
|
91 Operator to sort values in ascending order. |
|
92 @param s1 type of data to be sorted. |
|
93 */ |
|
94 bool CxeVideoDetails::operator<(const CxeVideoDetails &s1) const |
|
95 { |
|
96 return mHeight < s1.mHeight; |
|
97 } |
|