19 lines
347 B
C++
19 lines
347 B
C++
|
#include "sleutelslot.h"
|
||
|
|
||
|
SleutelSlot::SleutelSlot(string sleutel): vergrendeld(true), sleutel(sleutel){
|
||
|
}
|
||
|
|
||
|
bool SleutelSlot::isVergrendeld(){
|
||
|
return vergrendeld;
|
||
|
}
|
||
|
|
||
|
void SleutelSlot::ontgrendel(string sleutel){
|
||
|
if (sleutel == this->sleutel){
|
||
|
vergrendeld = false;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
void SleutelSlot::vergrendel(){
|
||
|
vergrendeld = true;
|
||
|
}
|