~ubuntu-branches/ubuntu/quantal/kdepimlibs/quantal-proposed

« back to all changes in this revision

Viewing changes to akonadi/kmime/movetotrashcommand.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-14 14:37:07 UTC
  • mto: This revision was merged to the branch mainline in revision 112.
  • Revision ID: package-import@ubuntu.com-20111214143707-m0qplh3hsd957ukv
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
  if ( mFolderListJobCount > 0 ) {
66
66
    Akonadi::ItemFetchJob *job = new Akonadi::ItemFetchJob( mFolders[mFolderListJobCount - 1], parent() );
67
67
    job->fetchScope().setAncestorRetrieval( Akonadi::ItemFetchScope::Parent );
68
 
    connect( job, SIGNAL( result( KJob* ) ), this, SLOT( slotFetchDone( KJob* ) ) );
 
68
    connect( job, SIGNAL(result(KJob*)), this, SLOT(slotFetchDone(KJob*)) );
69
69
  }
70
70
}
71
71
 
75
75
  if ( !mFolders.isEmpty() ) {
76
76
    Akonadi::ItemFetchJob *job = new Akonadi::ItemFetchJob(  mFolders[mFolderListJobCount - 1], parent() );
77
77
    job->fetchScope().setAncestorRetrieval( Akonadi::ItemFetchScope::Parent );
78
 
    connect( job, SIGNAL( result( KJob* ) ), this, SLOT( slotFetchDone( KJob* ) ) );
 
78
    connect( job, SIGNAL(result(KJob*)), this, SLOT(slotFetchDone(KJob*)) );
79
79
  } else if ( !mMessages.isEmpty() ) {
80
80
    mFolders << mMessages.first().parentCollection();
81
81
    moveMessages();
89
89
  Akonadi::Collection folder = mFolders[mFolderListJobCount];
90
90
  if ( folder.isValid() ) {
91
91
    MoveCommand *moveCommand = new MoveCommand( findTrashFolder( folder ), mMessages, this );
92
 
    connect( moveCommand, SIGNAL( result( Result ) ), this, SLOT( slotMoveDone( Result ) ) );
 
92
    connect( moveCommand, SIGNAL(result(Result)), this, SLOT(slotMoveDone(Result)) );
93
93
    moveCommand->execute();
94
94
  } else {
95
95
    emitResult( Failed );