~ubuntu-branches/ubuntu/quantal/kdepim/quantal

« back to all changes in this revision

Viewing changes to libkdepim/addemailaddressjob.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:51 UTC
  • mto: This revision was merged to the branch mainline in revision 193.
  • Revision ID: package-import@ubuntu.com-20111215141751-bmhdpiwl23wd9w26
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
 
71
71
      Akonadi::CollectionFetchJob * const addressBookJob = new Akonadi::CollectionFetchJob( Akonadi::Collection::root(), Akonadi::CollectionFetchJob::Recursive );
72
72
      addressBookJob->fetchScope().setContentMimeTypes( mimeTypes );
73
 
      q->connect( addressBookJob, SIGNAL( result( KJob* ) ), SLOT( slotCollectionsFetched( KJob* ) ) );
 
73
      q->connect( addressBookJob, SIGNAL(result(KJob*)), SLOT(slotCollectionsFetched(KJob*)) );
74
74
    }
75
75
 
76
76
    void slotCollectionsFetched( KJob *job )
138
138
 
139
139
      // save the new item in akonadi storage
140
140
      Akonadi::ItemCreateJob *createJob = new Akonadi::ItemCreateJob( item, addressBook, q );
141
 
      q->connect( createJob, SIGNAL( result( KJob* ) ), SLOT( slotAddContactDone( KJob* ) ) );
 
141
      q->connect( createJob, SIGNAL(result(KJob*)), SLOT(slotAddContactDone(KJob*)) );
142
142
    }
143
143
 
144
144
    void slotAddContactDone( KJob *job )
186
186
  searchJob->setLimit( 1 );
187
187
  searchJob->setQuery( Akonadi::ContactSearchJob::Email, d->mEmail,
188
188
                       Akonadi::ContactSearchJob::ExactMatch );
189
 
  connect( searchJob, SIGNAL( result( KJob* ) ), SLOT( slotSearchDone( KJob* ) ) );
 
189
  connect( searchJob, SIGNAL(result(KJob*)), SLOT(slotSearchDone(KJob*)) );
190
190
}
191
191
 
192
192
Akonadi::Item AddEmailAddressJob::contact() const