Logo Search packages:      
Sourcecode: fet version File versions

void Rules::modifyActivity ( int  _id,
int  _activityGroupId,
const QStringList &  _teachersNames,
const QString &  _subjectName,
const QString &  _subjectTagName,
const QStringList &  _studentsNames,
int  _nTotalStudents,
int  _nSplits,
int  _totalDuration,
int  _durations[],
int  _parities[] 
)

A function to modify the information of a certain activity. If this is a sub-activity of a split activity, all the sub-activities will be modified.

Definition at line 1855 of file rules.cpp.

References activitiesList, and internalStructureComputed.

{
      int i=0;
      for(Activity* act=this->activitiesList.first(); act; act=this->activitiesList.next())
            if(_activityGroupId==0 && act->id==_id || _activityGroupId!=0 && act->activityGroupId==_activityGroupId){
                  act->teachersNames=_teachersNames;
                  act->subjectName=_subjectName;
                  act->subjectTagName=_subjectTagName;
                  act->studentsNames=_studentsNames;
                  act->duration=_durations[i];
                  act->parity=_parities[i];
                  act->totalDuration=_totalDuration;
                  act->nTotalStudents=_nTotalStudents;
                  i++;
            }
            
      assert(i==_nSplits);
      
      this->internalStructureComputed=false;
}


Generated by  Doxygen 1.6.0   Back to index