mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-13 01:20:22 +03:00
24 lines
464 B
C
24 lines
464 B
C
|
#ifndef WIDGETLOCKREGISTRY_H
|
||
|
#define WIDGETLOCKREGISTRY_H
|
||
|
|
||
|
#include <vector>
|
||
|
#include <widgetlock.h>
|
||
|
|
||
|
class widgetlockregistry {
|
||
|
std::vector<widgetlock*> locks;
|
||
|
|
||
|
public:
|
||
|
widgetlockregistry() : locks() {}
|
||
|
virtual ~widgetlockregistry() {
|
||
|
while(!locks.empty()) {
|
||
|
delete locks.back();
|
||
|
locks.pop_back();
|
||
|
}
|
||
|
}
|
||
|
void add(widgetlock* lock) {
|
||
|
locks.push_back(lock);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
#endif // WIDGETLOCKREGISTRY_H
|