]> git.sur5r.net Git - minitube/blobdiff - src/searchparams.h
Imported Upstream version 2.0
[minitube] / src / searchparams.h
index 9af3f40e64c18f5571925963acb229d11e1d0cb2..24e023fa82f79dcdec10fd9655d41cb3d36ac366 100644 (file)
@@ -39,7 +39,7 @@ public:
         TimeMonth
     };
 
-    SearchParams();
+    SearchParams(QObject *parent = 0);
 
     const QString keywords() const { return m_keywords; }
     void setKeywords( QString keywords ) { m_keywords = keywords; }
@@ -62,6 +62,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);