X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lib%2Fqtcamvideomode.h;h=77a489ebd0e225593a3dbdb21992987defe3c2f6;hb=6093d32f1c064e358804cc3136b94d8f0b926815;hp=d47f1f4c3eaecc1f3de41d31dab26397638e56e7;hpb=8fda608e8809c2b5c1b0db2a10e6099b73759ce8;p=harmattan%2Fcameraplus diff --git a/lib/qtcamvideomode.h b/lib/qtcamvideomode.h index d47f1f4..77a489e 100644 --- a/lib/qtcamvideomode.h +++ b/lib/qtcamvideomode.h @@ -3,7 +3,7 @@ /*! * This file is part of CameraPlus. * - * Copyright (C) 2012 Mohammed Sameer + * Copyright (C) 2012-2013 Mohammed Sameer * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -28,6 +28,7 @@ class QtCamDevicePrivate; class QtCamVideoModePrivate; +class QtCamVideoResolution; class QtCamVideoSettings; class QtCamVideoMode : public QtCamMode { @@ -43,14 +44,19 @@ public: virtual void applySettings(); bool isRecording(); - Q_INVOKABLE bool startRecording(const QString& fileName); - bool setSettings(const QtCamVideoSettings& settings); + bool startRecording(const QString& fileName, const QString& tmpFileName = QString()); + + bool setResolution(const QtCamVideoResolution& resolution); + + QtCamVideoResolution currentResolution(); void setProfile(GstEncodingProfile *profile); + QtCamVideoSettings *settings(); + public slots: - void stopRecording(); + void stopRecording(bool sync); signals: void recordingStateChanged();