From kde-commits Sat Jul 31 22:04:01 2010 From: Vishesh Handa Date: Sat, 31 Jul 2010 22:04:01 +0000 To: kde-commits Subject: playground/base/nepomuk-kde/backupsync/lib Message-Id: <20100731220401.B553BAC783 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=128061377911631 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 masterLogRecords = d->m_masterChangeLog.toList(); + kDebug() << "masterLogRecords : " << masterLogRecords.size(); QList identifiedRecords; QMutableListIterator 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 & st );