Configuration file for N9
[harmattan/cameraplus] / imports / mode.h
index 8c0b673..d2032d0 100644 (file)
@@ -1,5 +1,25 @@
 // -*- c++ -*-
 
+/*!
+ * This file is part of CameraPlus.
+ *
+ * Copyright (C) 2012 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
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
 #ifndef MODE_H
 #define MODE_H
 
@@ -15,7 +35,7 @@ class Mode : public QObject {
   Q_PROPERTY(Camera* camera READ camera WRITE setCamera NOTIFY cameraChanged);
   Q_PROPERTY(bool canCapture READ canCapture NOTIFY canCaptureChanged);
   Q_PROPERTY(bool active READ isActive NOTIFY activeChanged);
-  Q_PROPERTY(bool nightMode READ inNightMode WRITE setNightMode NOTIFY nightModeChanged);
+  Q_PROPERTY(bool ready READ isReady NOTIFY isReadyChanged);
 
 public:
   Mode(QObject *parent = 0);
@@ -28,8 +48,7 @@ public:
 
   bool canCapture();
 
-  void setNightMode(bool night);
-  bool inNightMode() const;
+  bool isReady() const;
 
 signals:
   void cameraChanged();
@@ -37,7 +56,7 @@ signals:
   void activeChanged();
   void previewAvailable(const QString& preview, const QString& fileName);
   void saved(const QString& fileName);
-  void nightModeChanged();
+  void isReadyChanged();
 
 private slots:
   void gotPreview(const QImage& image, const QString& fileName);