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

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

SVN commit 688463 by suutari:

Make SQLImageDateCollection constructor to take QueryHelper instead of
Connection as a parameter.


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


--- branches/extragear/kde3/graphics/kphotoalbum/SQLDB/Database.cpp #688462:688463
@@ -247,7 +247,7 @@
 
 KSharedPtr<DB::ImageDateCollection> SQLDB::Database::rangeCollection()
 {
-    return new SQLImageDateCollection(*_connection
+    return new SQLImageDateCollection(_qh
                                       /*, search(Browser::instance()->currentContext(), false)*/);
 }
 
--- branches/extragear/kde3/graphics/kphotoalbum/SQLDB/SQLImageDateCollection.cpp #688462:688463
@@ -5,8 +5,8 @@
 
 using namespace SQLDB;
 
-SQLImageDateCollection::SQLImageDateCollection(Connection& connection):
-    _qh(connection)
+SQLImageDateCollection::SQLImageDateCollection(QueryHelper& queryHelper):
+    _qh(queryHelper)
 {
 }
 
--- branches/extragear/kde3/graphics/kphotoalbum/SQLDB/SQLImageDateCollection.h #688462:688463
@@ -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