harmattan/cameraplus
11 years agoupdate() is a signal not a slot. Use the correct macro
Mohammed Sameer [Sat, 8 Dec 2012 18:38:46 +0000 (20:38 +0200)]
update() is a signal not a slot. Use the correct macro

11 years agoVideoTorch and VideoMute are now properties of Camera
Mohammed Sameer [Sat, 8 Dec 2012 18:06:38 +0000 (20:06 +0200)]
VideoTorch and VideoMute are now properties of Camera

Renamed Mute to VideoMute
VideoTorch state is now stored and restored upon startup

11 years agoReworked QML capabilities.
Mohammed Sameer [Sat, 8 Dec 2012 17:01:49 +0000 (19:01 +0200)]
Reworked QML capabilities.

various capabilities are now properties of Camera and cannot be constructed
manually.
This fixes the issue with various properties not being set correctly upon startup.

11 years agoCode cleanup
Mohammed Sameer [Fri, 7 Dec 2012 23:59:44 +0000 (01:59 +0200)]
Code cleanup

11 years agoresetting Camera will cause the mode to be changed.
Mohammed Sameer [Fri, 7 Dec 2012 23:34:59 +0000 (01:34 +0200)]
resetting Camera will cause the mode to be changed.

main component reacts to that so let's move the code to the main component's onCompleted

11 years agoDon't try to show a page upon startup
Mohammed Sameer [Fri, 7 Dec 2012 23:32:55 +0000 (01:32 +0200)]
Don't try to show a page upon startup

Camera will emit modeChanged() when the mode gets changed during startup
and this is used to set the correct page

11 years agoOne cannot set mode and deviceId. Use camera::reset() instead.
Mohammed Sameer [Fri, 7 Dec 2012 23:25:54 +0000 (01:25 +0200)]
One cannot set mode and deviceId. Use camera::reset() instead.

This will simplify the code for QML bindings.

11 years agoAdded AutoFocus QML component
Mohammed Sameer [Wed, 31 Oct 2012 01:15:41 +0000 (03:15 +0200)]
Added AutoFocus QML component

11 years agoMerged QtCamCaf and QtCamAutoFocus
Mohammed Sameer [Wed, 31 Oct 2012 00:57:53 +0000 (02:57 +0200)]
Merged QtCamCaf and QtCamAutoFocus

11 years agoAdded QtCamAutoFocus
Mohammed Sameer [Wed, 31 Oct 2012 00:14:50 +0000 (02:14 +0200)]
Added QtCamAutoFocus

11 years agoAdded QtCamCaf to get the status of continuous auto focus
Mohammed Sameer [Tue, 30 Oct 2012 00:48:31 +0000 (02:48 +0200)]
Added QtCamCaf to get the status of continuous auto focus

11 years agoAdded Focus classes
Mohammed Sameer [Sun, 28 Oct 2012 22:15:22 +0000 (00:15 +0200)]
Added Focus classes

11 years agoAdded updated() signal to be used to detect change of optional resources.
Mohammed Sameer [Sat, 27 Oct 2012 00:05:44 +0000 (03:05 +0300)]
Added updated() signal to be used to detect change of optional resources.

11 years agoReworked CameraResources to be synchronous.
Mohammed Sameer [Sat, 20 Oct 2012 01:23:57 +0000 (04:23 +0300)]
Reworked CameraResources to be synchronous.

We also stop the camera when needed appropriately

11 years agoAdded an optional force parameter to Camera::stop()
Mohammed Sameer [Sat, 20 Oct 2012 00:54:48 +0000 (03:54 +0300)]
Added an optional force parameter to Camera::stop()

11 years agoQtCamDevice::stop() now takes a bool to force stopping
Mohammed Sameer [Sat, 20 Oct 2012 00:53:32 +0000 (03:53 +0300)]
QtCamDevice::stop() now takes a bool to force stopping

11 years agoIgnore camera errors while stopping the pipeline.
Mohammed Sameer [Sat, 20 Oct 2012 00:53:24 +0000 (03:53 +0300)]
Ignore camera errors while stopping the pipeline.

11 years agoMove all flash icons to data.js
Mohammed Sameer [Sat, 13 Oct 2012 19:58:58 +0000 (22:58 +0300)]
Move all flash icons to data.js

11 years agoAlways emit the changed signals when we change the scene mode.
Mohammed Sameer [Tue, 9 Oct 2012 21:51:11 +0000 (00:51 +0300)]
Always emit the changed signals when we change the scene mode.

This is to allow reapplying the mode and resetting all settings (Like flash).

11 years agoUse Data.ismIcon() for ImageSceneButton
Mohammed Sameer [Tue, 9 Oct 2012 21:50:49 +0000 (00:50 +0300)]
Use Data.ismIcon() for ImageSceneButton

11 years agoRecord video in a hidden directory then copy it to target directory.
Mohammed Sameer [Tue, 9 Oct 2012 21:31:56 +0000 (00:31 +0300)]
Record video in a hidden directory then copy it to target directory.

This is to avoid tracker indexing the video being recorded and waste CPU time.
The problem with tracker is it keeps getting update events because the file is
being written to. Tracker will ignore them but that still wastes CPU.

11 years agoDropped TODO by mistake during cleanup
Mohammed Sameer [Tue, 9 Oct 2012 21:31:28 +0000 (00:31 +0300)]
Dropped TODO by mistake during cleanup

11 years agoMove Quill initialization to main()
Mohammed Sameer [Mon, 8 Oct 2012 00:02:39 +0000 (03:02 +0300)]
Move Quill initialization to main()

11 years agoQuery the minimum, maximum and default values if needed from the GParamSpec objects
Mohammed Sameer [Sun, 7 Oct 2012 23:16:46 +0000 (02:16 +0300)]
Query the minimum, maximum and default values if needed from the GParamSpec objects

11 years agoCode cleanup
Mohammed Sameer [Sun, 7 Oct 2012 21:30:23 +0000 (00:30 +0300)]
Code cleanup

11 years agoAdded mount protector component.
Mohammed Sameer [Sun, 7 Oct 2012 16:07:00 +0000 (19:07 +0300)]
Added mount protector component.

Use it to prevent going to mass storage mode while capturing or recording.

11 years agoRelease resources on error
Mohammed Sameer [Sun, 7 Oct 2012 15:12:26 +0000 (18:12 +0300)]
Release resources on error

11 years agoRecording time indicator should take into account videoControlsVisible for its visibility
Mohammed Sameer [Sun, 7 Oct 2012 15:12:10 +0000 (18:12 +0300)]
Recording time indicator should take into account videoControlsVisible for its visibility

11 years agoUse replacePage() for the initial page setting to prevent having 2 video pages
Mohammed Sameer [Sun, 7 Oct 2012 15:03:34 +0000 (18:03 +0300)]
Use replacePage() for the initial page setting to prevent having 2 video pages

11 years agolow space handling:
Mohammed Sameer [Sun, 7 Oct 2012 00:20:56 +0000 (03:20 +0300)]
low space handling:
1) Don't capture or record if we have less than 100MB free
2) Stop recording if we have less than 100MB free

11 years agoBattery low handling:
Mohammed Sameer [Sat, 6 Oct 2012 21:31:41 +0000 (00:31 +0300)]
Battery low handling:
1) Don't record video or capture images when battery is low
2) Stop video recording when we battery is low

11 years agoAdded a note about PositionSource not resetting the position when we lose the signal
Mohammed Sameer [Sat, 6 Oct 2012 21:01:27 +0000 (00:01 +0300)]
Added a note about PositionSource not resetting the position when we lose the signal

11 years agoStop recording after 1 hour
Mohammed Sameer [Thu, 27 Sep 2012 22:41:37 +0000 (01:41 +0300)]
Stop recording after 1 hour

11 years agoAdd recording indicator and time
Mohammed Sameer [Thu, 27 Sep 2012 22:32:05 +0000 (01:32 +0300)]
Add recording indicator and time

11 years agounref camerabin when we get destroyed
Mohammed Sameer [Thu, 27 Sep 2012 22:31:44 +0000 (01:31 +0300)]
unref camerabin when we get destroyed

11 years agostop the device and delete it when we are being destroyed to avoid accessing it if...
Mohammed Sameer [Thu, 27 Sep 2012 22:29:05 +0000 (01:29 +0300)]
stop the device and delete it when we are being destroyed to avoid accessing it if a camerabin property changes

11 years agoAdjust the font size for the headers in the settings pages
Mohammed Sameer [Thu, 27 Sep 2012 21:18:54 +0000 (00:18 +0300)]
Adjust the font size for the headers in the settings pages

11 years agolock ImagePage orientation to Landscape for now
Mohammed Sameer [Thu, 27 Sep 2012 20:54:56 +0000 (23:54 +0300)]
lock ImagePage orientation to Landscape for now

11 years agoAdded an option to disable (mute) camera sound
Mohammed Sameer [Thu, 27 Sep 2012 20:54:37 +0000 (23:54 +0300)]
Added an option to disable (mute) camera sound

11 years agoFixed for error messages
Mohammed Sameer [Wed, 26 Sep 2012 23:47:11 +0000 (02:47 +0300)]
Fixed for error messages

11 years agoUse blocking playback for video start sound
Mohammed Sameer [Wed, 26 Sep 2012 23:35:24 +0000 (02:35 +0300)]
Use blocking playback for video start sound

11 years agoAdded a sounds component that implements the Notifications interface and is used to
Mohammed Sameer [Wed, 26 Sep 2012 20:26:59 +0000 (23:26 +0300)]
Added a sounds component that implements the Notifications interface and is used to
play platform predefined sounds.

11 years agoindex is still invalid if its row equals the number of resolutions
Mohammed Sameer [Wed, 26 Sep 2012 17:45:53 +0000 (20:45 +0300)]
index is still invalid if its row equals the number of resolutions

11 years agoAdded classes for Notifications (Sound playback use case)
Mohammed Sameer [Sun, 23 Sep 2012 13:23:59 +0000 (16:23 +0300)]
Added classes for Notifications (Sound playback use case)

The main class is QtCamNotifications which emits various signals when
image capture starts and ends and video recording starts and ends.

QML bindings consist of a Notifications interface and a notifications property
for Camera element.

We cannot use simple signals because at least the image capture start notification
gets emitted from another thread for performance reasons.

11 years agoDon't check camera mode if cam is null
Mohammed Sameer [Sun, 23 Sep 2012 00:21:09 +0000 (03:21 +0300)]
Don't check camera mode if cam is null

11 years agoReset the unneeded caps
Mohammed Sameer [Sun, 23 Sep 2012 00:20:05 +0000 (03:20 +0300)]
Reset the unneeded caps

If we don't do it then we fail to restart the pipeline after we switch to image mode.

11 years agoAdded indicators for video and image resolutions
Mohammed Sameer [Sat, 22 Sep 2012 23:07:56 +0000 (02:07 +0300)]
Added indicators for video and image resolutions

11 years agoImplemented video resolution setting
Mohammed Sameer [Sat, 22 Sep 2012 22:41:24 +0000 (01:41 +0300)]
Implemented video resolution setting

11 years agoLoad all resolutions upon model creation.
Mohammed Sameer [Sat, 22 Sep 2012 22:39:16 +0000 (01:39 +0300)]
Load all resolutions upon model creation.

If we don't do so then it becomes impossible to load all of them since m_aspectRatio
will be empty and the only way to load all them is to set the aspectRatio property
to an empty string.
The new property value and the stored one will always be equal in such case.

11 years agosort the presets correctly. high then medium then low
Mohammed Sameer [Sat, 22 Sep 2012 22:00:39 +0000 (01:00 +0300)]
sort the presets correctly. high then medium then low

11 years agoDon't return false if we try to set video resolution and pipeline is not running
Mohammed Sameer [Sat, 22 Sep 2012 21:59:37 +0000 (00:59 +0300)]
Don't return false if we try to set video resolution and pipeline is not running

11 years agoSet the proper resolution when we startup, change aspect ratio or resolution
Mohammed Sameer [Sat, 22 Sep 2012 21:22:23 +0000 (00:22 +0300)]
Set the proper resolution when we startup, change aspect ratio or resolution

11 years agoreturn true if we try to set the resolution and the pipeline is not running
Mohammed Sameer [Sat, 22 Sep 2012 21:22:05 +0000 (00:22 +0300)]
return true if we try to set the resolution and the pipeline is not running

11 years agoDon't try to change the resolution or aspect ratio if camera is busy
Mohammed Sameer [Sat, 22 Sep 2012 21:04:48 +0000 (00:04 +0300)]
Don't try to change the resolution or aspect ratio if camera is busy

11 years agoSettings for aspect ration and resolution can now read from and save to the configuration
Mohammed Sameer [Sat, 22 Sep 2012 20:45:28 +0000 (23:45 +0300)]
Settings for aspect ration and resolution can now read from and save to the configuration

11 years agoSilence g++/moc warnings
Mohammed Sameer [Sat, 22 Sep 2012 10:12:27 +0000 (13:12 +0300)]
Silence g++/moc warnings

11 years agoReworked how resolution is being specified in the configuration.
Mohammed Sameer [Sat, 22 Sep 2012 00:01:47 +0000 (03:01 +0300)]
Reworked how resolution is being specified in the configuration.

Now resolution per camera device can be specified in the configuration.
QtCam*Settings classes hold the profile name and path, suffix and the list of the resolutions.

11 years agoConfiguration file for N9
Mohammed Sameer [Fri, 21 Sep 2012 20:18:20 +0000 (23:18 +0300)]
Configuration file for N9

11 years agoMoved the .gep files to the N9 data directory
Mohammed Sameer [Thu, 20 Sep 2012 22:04:37 +0000 (01:04 +0300)]
Moved the .gep files to the N9 data directory

11 years agoAdded copyright headers and COPYING file.
Mohammed Sameer [Thu, 20 Sep 2012 22:01:34 +0000 (01:01 +0300)]
Added copyright headers and COPYING file.

11 years agoForgot include guards
Mohammed Sameer [Thu, 20 Sep 2012 21:45:12 +0000 (00:45 +0300)]
Forgot include guards

11 years agodon't apply the resolution if camera is not running
Mohammed Sameer [Wed, 19 Sep 2012 22:32:01 +0000 (01:32 +0300)]
don't apply the resolution if camera is not running

11 years agoChanged the default configuration file path
Mohammed Sameer [Wed, 19 Sep 2012 00:23:49 +0000 (03:23 +0300)]
Changed the default configuration file path

11 years agoAdding forgotten files
Mohammed Sameer [Mon, 17 Sep 2012 22:18:20 +0000 (01:18 +0300)]
Adding forgotten files

11 years agoAdded indicators and settings page for video.
Mohammed Sameer [Mon, 17 Sep 2012 22:17:06 +0000 (01:17 +0300)]
Added indicators and settings page for video.

11 years agoWe cannot use the Indicators component so let's copy and paste it whenever we need...
Mohammed Sameer [Mon, 17 Sep 2012 21:54:07 +0000 (00:54 +0300)]
We cannot use the Indicators component so let's copy and paste it whenever we need for now

11 years agoMark all the unimplemented image settings as TODO items.
Mohammed Sameer [Mon, 17 Sep 2012 18:48:36 +0000 (21:48 +0300)]
Mark all the unimplemented image settings as TODO items.

11 years agoAdded dummy indicator for the resolution and cleaned up the rest
Mohammed Sameer [Mon, 17 Sep 2012 18:48:05 +0000 (21:48 +0300)]
Added dummy indicator for the resolution and cleaned up the rest

11 years agoReversed condition prevented saving the useGps setting
Mohammed Sameer [Mon, 17 Sep 2012 00:08:42 +0000 (03:08 +0300)]
Reversed condition prevented saving the useGps setting

11 years agoJust pass the filename to pageStack.push()
Mohammed Sameer [Mon, 17 Sep 2012 00:08:37 +0000 (03:08 +0300)]
Just pass the filename to pageStack.push()

11 years agowork around an issue with the connection dialog for now
Mohammed Sameer [Mon, 17 Sep 2012 00:08:03 +0000 (03:08 +0300)]
work around an issue with the connection dialog for now

11 years agoMore work on indicators
Mohammed Sameer [Mon, 17 Sep 2012 00:07:48 +0000 (03:07 +0300)]
More work on indicators

11 years agoISO settings are now functional
Mohammed Sameer [Sun, 16 Sep 2012 22:01:17 +0000 (01:01 +0300)]
ISO settings are now functional

11 years agoSet the metadata to the images and videos.
Mohammed Sameer [Sun, 16 Sep 2012 19:46:14 +0000 (22:46 +0300)]
Set the metadata to the images and videos.

11 years agoAdded Geocode class for reverse geocoding
Mohammed Sameer [Sun, 16 Sep 2012 19:35:35 +0000 (22:35 +0300)]
Added Geocode class for reverse geocoding

11 years agoAdded declarative components for compass and orientation.
Mohammed Sameer [Sun, 16 Sep 2012 18:10:27 +0000 (21:10 +0300)]
Added declarative components for compass and orientation.

QtMobility compass cannot be used because we need to switch on the declination correction

11 years agoAdded MetaData class for the declarative API
Mohammed Sameer [Fri, 14 Sep 2012 23:42:26 +0000 (02:42 +0300)]
Added MetaData class for the declarative API

11 years agoWorkaround policy engine ignoring our request after being minimized then maximized
Mohammed Sameer [Fri, 14 Sep 2012 18:05:27 +0000 (21:05 +0300)]
Workaround policy engine ignoring our request after being minimized then maximized

11 years agoUse Qt.application.active instead of platformWindow.active
Mohammed Sameer [Fri, 14 Sep 2012 15:53:56 +0000 (18:53 +0300)]
Use Qt.application.active instead of platformWindow.active

platformWindow.active gets toggled from true to false and back to true upon startup.

11 years agoAdded QtCamMute
Mohammed Sameer [Fri, 14 Sep 2012 15:34:25 +0000 (18:34 +0300)]
Added QtCamMute

11 years agocapture button should be visible when camera is running too
Mohammed Sameer [Fri, 14 Sep 2012 10:21:23 +0000 (13:21 +0300)]
capture button should be visible when camera is running too

11 years agoEmit canCaptureChanged() for the active mode when we get an error
Mohammed Sameer [Fri, 14 Sep 2012 10:20:29 +0000 (13:20 +0300)]
Emit canCaptureChanged() for the active mode when we get an error

11 years agoAdded an error() signal to declarative Camera and show an error when it gets emitted
Mohammed Sameer [Fri, 14 Sep 2012 10:19:45 +0000 (13:19 +0300)]
Added an error() signal to declarative Camera and show an error when it gets emitted

11 years agoAdded a dummy details widget
Mohammed Sameer [Fri, 14 Sep 2012 02:42:05 +0000 (05:42 +0300)]
Added a dummy details widget

11 years agoReworked the tracker sparql query
Mohammed Sameer [Thu, 13 Sep 2012 19:33:33 +0000 (22:33 +0300)]
Reworked the tracker sparql query

11 years agoAdded resource policy support (Still needs more testing) and refactored the pipeline...
Mohammed Sameer [Thu, 13 Sep 2012 19:26:17 +0000 (22:26 +0300)]
Added resource policy support (Still needs more testing) and refactored the pipeline handling logic

11 years agoSlightly better error
Mohammed Sameer [Wed, 12 Sep 2012 21:42:53 +0000 (00:42 +0300)]
Slightly better error

11 years agoExplicitely enable thumbnailing and dbus based one
Mohammed Sameer [Wed, 12 Sep 2012 21:42:34 +0000 (00:42 +0300)]
Explicitely enable thumbnailing and dbus based one

11 years agoQuillItem itself is always visible. It will be blank anyway if it fails
Mohammed Sameer [Wed, 12 Sep 2012 17:45:53 +0000 (20:45 +0300)]
QuillItem itself is always visible. It will be blank anyway if it fails

11 years agoAdd an error property to QuillItem and show a label when we cannot load it
Mohammed Sameer [Wed, 12 Sep 2012 17:43:55 +0000 (20:43 +0300)]
Add an error property to QuillItem and show a label when we cannot load it

11 years agoQuery device maker and model from QtMobility DeviceInfo
Mohammed Sameer [Wed, 12 Sep 2012 16:47:44 +0000 (19:47 +0300)]
Query device maker and model from QtMobility DeviceInfo

11 years agoTry to get the creation date of the media so we can order by it.
Mohammed Sameer [Wed, 12 Sep 2012 15:47:50 +0000 (18:47 +0300)]
Try to get the creation date of the media so we can order by it.

11 years agoRework postcapture using PathView
Mohammed Sameer [Wed, 12 Sep 2012 15:47:27 +0000 (18:47 +0300)]
Rework postcapture using PathView

11 years agoTweaked the mode switch animation and now it works better
Mohammed Sameer [Tue, 11 Sep 2012 21:20:18 +0000 (00:20 +0300)]
Tweaked the mode switch animation and now it works better

11 years agoAdded a monitor for MyDocs availability
Mohammed Sameer [Tue, 11 Sep 2012 21:00:59 +0000 (00:00 +0300)]
Added a monitor for MyDocs availability
Show warnings if we start recording or capturing while it's not available

11 years agoInhibit display dimming while video recording
Mohammed Sameer [Tue, 11 Sep 2012 20:46:45 +0000 (23:46 +0300)]
Inhibit display dimming while video recording

11 years agoQt can call XInitThreads() if we set the AA_X11InitThreads attribute
Mohammed Sameer [Tue, 11 Sep 2012 20:26:43 +0000 (23:26 +0300)]
Qt can call XInitThreads() if we set the AA_X11InitThreads attribute

11 years agoAdded TODOs
Mohammed Sameer [Tue, 11 Sep 2012 20:17:55 +0000 (23:17 +0300)]
Added TODOs

11 years agoPass the mime type to QuillItem and request images that are 10 pixels smaller so...
Mohammed Sameer [Tue, 11 Sep 2012 20:14:32 +0000 (23:14 +0300)]
Pass the mime type to QuillItem and request images that are 10 pixels smaller so we get a separator between images

11 years agoVery basic, rough and extremely limited post capture view
Mohammed Sameer [Mon, 10 Sep 2012 13:40:51 +0000 (16:40 +0300)]
Very basic, rough and extremely limited post capture view