]> git.sur5r.net Git - minitube/blobdiff - src/searchparams.h
Merge tag 'upstream/2.1.3'
[minitube] / src / searchparams.h
index 9af3f40e64c18f5571925963acb229d11e1d0cb2..f2e9d035ec98839842a12265a6fd3c5694b02d77 100644 (file)
@@ -1,3 +1,23 @@
+/* $BEGIN_LICENSE
+
+This file is part of Minitube.
+Copyright 2009, Flavio Tordini <flavio.tordini@gmail.com>
+
+Minitube is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+Minitube 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 General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Minitube.  If not, see <http://www.gnu.org/licenses/>.
+
+$END_LICENSE */
+
 #ifndef SEARCHPARAMS_H
 #define SEARCHPARAMS_H
 
@@ -39,7 +59,7 @@ public:
         TimeMonth
     };
 
-    SearchParams();
+    SearchParams(QObject *parent = 0);
 
     const QString keywords() const { return m_keywords; }
     void setKeywords( QString keywords ) { m_keywords = keywords; }
@@ -62,6 +82,11 @@ public:
     int time() const { return m_time; }
     void setTime( int time ) { m_time = time; }
 
+    bool operator==(const SearchParams &other) const {
+        return m_keywords == other.keywords() &&
+                m_author == other.author();
+    }
+
 public slots:
     void setParam(QString name, QVariant value);