Don't reuse file names
[harmattan/cameraplus] / lib / qtcamvideomode.h
index d47f1f4..77a489e 100644 (file)
@@ -3,7 +3,7 @@
 /*!
  * This file is part of CameraPlus.
  *
- * Copyright (C) 2012 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2012-2013 Mohammed Sameer <msameer@foolab.org>
  *
  * 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();