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

List:       kde-commits
Subject:    playground/base/nepomuk-kde/backupsync/lib
From:       Vishesh Handa <handa.vish () gmail ! com>
Date:       2010-07-31 22:04:01
Message-ID: 20100731220401.B553BAC783 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1157698 by vhanda:

Added convenience constructor for IdentificationRequest.


 M  +14 -0     identificationrequest.cpp  
 M  +3 -0      identificationrequest.h  


--- trunk/playground/base/nepomuk-kde/backupsync/lib/identificationrequest.cpp \
#1157697:1157698 @@ -97,7 +97,20 @@
 }
 
 
+Nepomuk::Sync::IdentificationRequest::IdentificationRequest(const \
Nepomuk::Sync::ChangeLog& log, const Nepomuk::Sync::IdentificationSet& identSet, \
Soprano::Model* toModel, QObject* parent) +    : QObject(parent),
+      d( new Nepomuk::Sync::IdentificationRequest::Private )
+{
+    d->m_masterChangeLog = log;
+    d->m_identificationSet = identSet;
 
+    d->m_id = Private::NextId;
+    Private::NextId++;
+    
+    d->m_model = toModel;
+}
+
+
 void Nepomuk::Sync::IdentificationRequest::load()
 {
     if( !d->m_resourceHash.isEmpty() )
@@ -119,6 +132,7 @@
 Nepomuk::Sync::ChangeLog Nepomuk::Sync::IdentificationRequest::convert()
 {
     QList<ChangeLogRecord> masterLogRecords = d->m_masterChangeLog.toList();
+    kDebug() << "masterLogRecords : " << masterLogRecords.size();
 
     QList<ChangeLogRecord> identifiedRecords;
     QMutableListIterator<ChangeLogRecord> it( masterLogRecords );
--- trunk/playground/base/nepomuk-kde/backupsync/lib/identificationrequest.h \
#1157697:1157698 @@ -73,6 +73,9 @@
             IdentificationRequest( const ChangeLog & log, Soprano::Model * \
                fromModel,
                                    Soprano::Model * toModel, QObject * parent = 0 );
 
+            IdentificationRequest( const ChangeLog & log, const IdentificationSet & \
identSet, +                                   Soprano::Model * toModel, QObject * \
parent = 0 ); +
         Q_SIGNALS:
             void identified( int id, const QString & oldUri, const QString & newUri \
                );
             void notIdentified( int id, const QList<Soprano::Statement> & st );


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

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