[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/graphics/kphotoalbum/SQLDB
From:       Tuomas Suutari <thsuut () utu ! fi>
Date:       2007-07-16 6:57:16
Message-ID: 1184569036.272248.28260.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 688467 by suutari:

Merge change 688463 from KDE3 branch. (SQLImageDateCollection constructor change)

 M  +1 -1      Database.cpp  
 M  +2 -2      SQLImageDateCollection.cpp  
 M  +2 -3      SQLImageDateCollection.h  


--- trunk/extragear/graphics/kphotoalbum/SQLDB/Database.cpp #688466:688467
@@ -249,7 +249,7 @@
 
 KSharedPtr<DB::ImageDateCollection> SQLDB::Database::rangeCollection()
 {
-    return new SQLImageDateCollection(*_connection
+    return new SQLImageDateCollection(_qh
                                       /*, search(Browser::instance()->currentContext(), false)*/);
 }
 
--- trunk/extragear/graphics/kphotoalbum/SQLDB/SQLImageDateCollection.cpp #688466:688467
@@ -5,8 +5,8 @@
 
 using namespace SQLDB;
 
-SQLImageDateCollection::SQLImageDateCollection(Connection& connection):
-    _qh(connection)
+SQLImageDateCollection::SQLImageDateCollection(QueryHelper& queryHelper):
+    _qh(queryHelper)
 {
 }
 
--- trunk/extragear/graphics/kphotoalbum/SQLDB/SQLImageDateCollection.h #688466:688467
@@ -19,7 +19,6 @@
 #ifndef SQLIMAGEDATERANGECOLLECTION_H
 #define SQLIMAGEDATERANGECOLLECTION_H
 #include "DB/ImageDateCollection.h"
-#include "Connection.h"
 #include "QueryHelper.h"
 
 namespace SQLDB
@@ -28,14 +27,14 @@
 class SQLImageDateCollection :public DB::ImageDateCollection
 {
 public:
-    explicit SQLImageDateCollection(Connection& connection);
+    explicit SQLImageDateCollection(QueryHelper& queryHelper);
 
     virtual DB::ImageCount count( const DB::ImageDate& date );
     virtual QDateTime lowerLimit() const;
     virtual QDateTime upperLimit() const;
 
 protected:
-    QueryHelper _qh;
+    QueryHelper& _qh;
 };
 
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic