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

« back to all changes in this revision

Viewing changes to incidenceeditor-ng/incidenceattendee.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:
1
1
/*
2
2
  Copyright (C) 2010 Casey Link <unnamedrambler@gmail.com>
3
 
  Copyright (C) 2009-2010 Klaralvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
 
3
  Copyright (c) 2009-2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
4
4
 
5
5
  Based on old attendeeeditor.cpp:
6
6
  Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org>
75
75
 
76
76
  connect( mAttendeeEditor, SIGNAL(countChanged(int)),
77
77
           SIGNAL(attendeeCountChanged(int)) );
78
 
  connect( mAttendeeEditor, SIGNAL(editingFinished(KPIM::MultiplyingLine *)),
79
 
           SLOT(checkIfExpansionIsNeeded(KPIM::MultiplyingLine *)) );
 
78
  connect( mAttendeeEditor, SIGNAL(editingFinished(KPIM::MultiplyingLine*)),
 
79
           SLOT(checkIfExpansionIsNeeded(KPIM::MultiplyingLine*)) );
80
80
 
81
81
  mUi->mOrganizerStack->setCurrentIndex( 0 );
82
82
 
115
115
 
116
116
  slotUpdateConflictLabel( 0 ); //initialize label
117
117
 
118
 
  connect( mAttendeeEditor, SIGNAL(editingFinished(KPIM::MultiplyingLine *)),
119
 
           SLOT(checkIfExpansionIsNeeded(KPIM::MultiplyingLine *)) );
 
118
  connect( mAttendeeEditor, SIGNAL(editingFinished(KPIM::MultiplyingLine*)),
 
119
           SLOT(checkIfExpansionIsNeeded(KPIM::MultiplyingLine*)) );
120
120
  connect( mAttendeeEditor, SIGNAL(changed(KCalCore::Attendee::Ptr,KCalCore::Attendee::Ptr)),
121
121
           SLOT(slotAttendeeChanged(KCalCore::Attendee::Ptr,KCalCore::Attendee::Ptr)) );
122
122
}
196
196
    }
197
197
  }
198
198
 
199
 
  if ( mUi->mOrganizerStack->currentIndex() == 0 )
 
199
  if ( mUi->mOrganizerStack->currentIndex() == 0 ) {
200
200
    incidence->setOrganizer( mUi->mOrganizerCombo->currentText() );
201
 
  else
 
201
  } else {
202
202
    incidence->setOrganizer( mUi->mOrganizerLabel->text() );
 
203
  }
203
204
}
204
205
 
205
206
bool IncidenceAttendee::isDirty() const
255
256
  mAttendeeEditor->clear();
256
257
 
257
258
  foreach ( const AttendeeData::Ptr &attendee, attendees ) {
258
 
    if ( config->thatIsMe( attendee->email() ) )
 
259
    if ( config->thatIsMe( attendee->email() ) ) {
259
260
      attendee->setStatus( stat );
260
 
 
 
261
    }
261
262
    mAttendeeEditor->addAttendee( attendee );
262
263
  }
263
264
 
304
305
 
305
306
  Akonadi::ContactGroupSearchJob *job = new Akonadi::ContactGroupSearchJob();
306
307
  job->setQuery( Akonadi::ContactGroupSearchJob::Name, data->name() );
307
 
  connect( job, SIGNAL( result( KJob* ) ), this, SLOT( groupSearchResult( KJob* ) ) );
 
308
  connect( job, SIGNAL(result(KJob*)), this, SLOT(groupSearchResult(KJob*)) );
308
309
 
309
310
  mMightBeGroupLines.insert( job, QWeakPointer<KPIM::MultiplyingLine>( line ) );
310
311
}
340
341
  }
341
342
 
342
343
  Akonadi::ContactGroupExpandJob *expandJob = new Akonadi::ContactGroupExpandJob( group, this );
343
 
  connect( expandJob, SIGNAL( result( KJob* ) ), this, SLOT( expandResult( KJob* ) ) );
 
344
  connect( expandJob, SIGNAL(result(KJob*)), this, SLOT(expandResult(KJob*)) );
344
345
  expandJob->start();
345
346
}
346
347
 
366
367
          Akonadi::ContactGroupExpandJob *job =
367
368
            new Akonadi::ContactGroupExpandJob(
368
369
              selection.item().payload<KABC::ContactGroup>(), this );
369
 
          connect( job, SIGNAL( result( KJob* ) ), this, SLOT( expandResult( KJob* ) ) );
 
370
          connect( job, SIGNAL(result(KJob*)), this, SLOT(expandResult(KJob*)) );
370
371
          job->start();
371
372
        } else {
372
373
          KABC::Addressee contact;