Don't try to reacquire resources if we already have the correct ones
[harmattan/cameraplus] / lib / qtcamvideomode.h
index 909403d..649c5ca 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
@@ -44,7 +44,8 @@ public:
   virtual void applySettings();
 
   bool isRecording();
-  Q_INVOKABLE bool startRecording(const QString& fileName);
+
+  bool startRecording(const QString& fileName, const QString& tmpFileName = QString());
 
   bool setResolution(const QtCamVideoResolution& resolution);
 
@@ -53,7 +54,7 @@ public:
   QtCamVideoSettings *settings();
 
 public slots:
-  void stopRecording();
+  void stopRecording(bool sync);
 
 signals:
   void recordingStateChanged();