Added getter for current resolution
[harmattan/cameraplus] / lib / qtcamvideomode.h
index 909403d..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
@@ -44,16 +44,19 @@ 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);
 
+  QtCamVideoResolution currentResolution();
+
   void setProfile(GstEncodingProfile *profile);
 
   QtCamVideoSettings *settings();
 
 public slots:
-  void stopRecording();
+  void stopRecording(bool sync);
 
 signals:
   void recordingStateChanged();